refactor[db]: store time as unix ms

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-10-03 21:23:51 +00:00
parent 1d8a117b93
commit 0e686a1f85
11 changed files with 132 additions and 15 deletions

View File

@@ -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: