Skip to content

Commit

Permalink
db.update
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Feb 27, 2025
1 parent 0573456 commit 0214da6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/loot-core/src/server/accounts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,7 @@ async function handleSyncResponse(
}

const ts = new Date().getTime().toString();
const id = acct.id;
await db.runQuery(`UPDATE accounts SET last_sync = ? WHERE id = ?`, [ts, id]);
await db.update('accounts', { id: acct.id, last_sync: ts });

return {
newTransactions,
Expand Down

0 comments on commit 0214da6

Please sign in to comment.