feat(sync): carry the automatic-recording marker on intake upserts

This commit is contained in:
Marc-André Bombeck committed 2026-10-11 13:56:28 +02:00
1 parent e93b4f249f
commit 55bfb0a439
3 files changed
+13

No files matched your search

+4
View File
@@ -163,6 +163,8 @@ interface IntakeUpsert {
takenAt: string | null;
skipped: boolean;
source: string;
/** v1.42.2 — recorded by the server (`autoMarkTaken`), not the person. */
autoRecorded: boolean;
syncVersion: number;
updatedAt: string;
}
@@ -389,6 +391,7 @@ export const GET = apiHandler(async (request: NextRequest) => {
takenAt: true,
skipped: true,
source: true,
autoRecorded: true,
syncVersion: true,
deletedAt: true,
updatedAt: true,
@@ -543,6 +546,7 @@ export const GET = apiHandler(async (request: NextRequest) => {
takenAt: row.takenAt?.toISOString() ?? null,
skipped: row.skipped,
source: row.source,
autoRecorded: row.autoRecorded,
syncVersion: row.syncVersion,
updatedAt: row.updatedAt.toISOString(),
});