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:
parent
f1a2d385f3
commit
6375abf2d8
|
|
@ -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<string, unknown>;
|
||||
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<string, unknown>;
|
||||
await db.threads.put({
|
||||
...(t as never),
|
||||
account_id: accountId,
|
||||
});
|
||||
await db.threads.put(
|
||||
Object.assign({}, t, { account_id: accountId }) as never
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue