docs(chord): the tutorial uses tx.update with its integer key now that int keys type-check

This commit is contained in:
Mario Zechner 2026-11-04 09:07:23 +00:00
parent 9bca21a0b8
commit f4427f8a3e
3 changed files with 8 additions and 19 deletions

View file

@ -79,7 +79,7 @@ export default defineFacet((host) => {
return null;
},
tick: async ({ id, done }, ctx) => {
await self.tx(async (tx) => tx.updateWhere(items, (item) => eq(item.id, id), { done }), ctx);
await self.tx(async (tx) => tx.update(items, { id }, { done }), ctx);
return null;
},
clear: async ({ by }, ctx) => {