fix: resolve spread type error; add Dockerfile + nginx for prod deploy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kavi 2026-04-22 03:10:09 -04:00
parent f1a2d385f3
commit 6375abf2d8
1 changed files with 6 additions and 8 deletions

View File

@ -63,16 +63,14 @@ export async function pullChanges(accountId: string) {
for (const change of res.changes) { for (const change of res.changes) {
if (change.type === 'message') { if (change.type === 'message') {
const m = change.data as Record<string, unknown>; const m = change.data as Record<string, unknown>;
await db.messages.put({ await db.messages.put(
...(m as never), Object.assign({}, m, { account_id: accountId }) as never
account_id: accountId, );
});
} else if (change.type === 'thread') { } else if (change.type === 'thread') {
const t = change.data as Record<string, unknown>; const t = change.data as Record<string, unknown>;
await db.threads.put({ await db.threads.put(
...(t as never), Object.assign({}, t, { account_id: accountId }) as never
account_id: accountId, );
});
} }
} }
}); });