claude/session-crx3tm #147
1 changed files with 3 additions and 3 deletions
|
|
@ -57,9 +57,9 @@ const db = {
|
|||
set: (data: Partial<MatchRow>) => {
|
||||
const applyTo = (where: unknown) => {
|
||||
const values = whereValues(where);
|
||||
const row = rows.find((r) => values.includes(r.id));
|
||||
if (row) Object.assign(row, data);
|
||||
return row;
|
||||
const target = rows.find((r) => values.includes(r.id));
|
||||
if (target) Object.assign(target, data);
|
||||
return target;
|
||||
};
|
||||
// Advancement writes through the query builder with and without .returning().
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue