From 6375abf2d881d3217a56b1ebe3c2ee1cfe560f21 Mon Sep 17 00:00:00 2001 From: Kavi Date: Wed, 22 Apr 2026 03:10:09 -0400 Subject: [PATCH] fix: resolve spread type error; add Dockerfile + nginx for prod deploy Co-Authored-By: Claude Sonnet 4.6 --- src/sync/engine.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/sync/engine.ts b/src/sync/engine.ts index 7f985e4..7df6691 100644 --- a/src/sync/engine.ts +++ b/src/sync/engine.ts @@ -63,16 +63,14 @@ export async function pullChanges(accountId: string) { for (const change of res.changes) { if (change.type === 'message') { const m = change.data as Record; - await db.messages.put({ - ...(m as never), - account_id: accountId, - }); + await db.messages.put( + Object.assign({}, m, { account_id: accountId }) as never + ); } else if (change.type === 'thread') { const t = change.data as Record; - await db.threads.put({ - ...(t as never), - account_id: accountId, - }); + await db.threads.put( + Object.assign({}, t, { account_id: accountId }) as never + ); } } });