From 32a6807819184931d4ea947de7dae8df6c8128ba Mon Sep 17 00:00:00 2001 From: Benjamin Hutchins Date: Wed, 5 Jun 2024 11:35:34 -0400 Subject: [PATCH] fix: passing conditions from PrimaryKey.update to Table.update Fixes #699 --- src/query/primary-key.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/primary-key.ts b/src/query/primary-key.ts index 487dbc3..727069c 100644 --- a/src/query/primary-key.ts +++ b/src/query/primary-key.ts @@ -393,6 +393,6 @@ export class PrimaryKey): Promise { - await this.fromKey(input.hash, input.range).fromJSON(input.changes).save(input.conditions) + await this.fromKey(input.hash, input.range).fromJSON(input.changes).save({ conditions: input.conditions }) } }