mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
refactor[db]: store time as unix ms
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -81,7 +81,7 @@ export const saveFile = authenticatedMutation({
|
||||
mimeType: v.optional(v.string()),
|
||||
},
|
||||
handler: async (ctx, { name, storageId, directoryId, size, mimeType }) => {
|
||||
const now = new Date().toISOString()
|
||||
const now = Date.now()
|
||||
|
||||
await ctx.db.insert("files", {
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user