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) {
|
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,
|
);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue