mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(chord): the tutorial uses tx.update with its integer key now that int keys type-check
This commit is contained in:
parent
9bca21a0b8
commit
f4427f8a3e
3 changed files with 8 additions and 19 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue