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:
@@ -70,7 +70,7 @@ export const moveToTrash = authenticatedMutation({
|
||||
case FileType.File:
|
||||
return ctx.db
|
||||
.patch(handle.id, {
|
||||
deletedAt: new Date().toISOString(),
|
||||
deletedAt: Date.now(),
|
||||
})
|
||||
.then(() => handle)
|
||||
case FileType.Directory:
|
||||
|
||||
Reference in New Issue
Block a user