From 2b51c1f1fd050cdc05588536681eb0450dbd953e Mon Sep 17 00:00:00 2001 From: terrablue <102580937+terrablue@users.noreply.github.com> Date: Mon, 5 Aug 2024 01:17:46 +0200 Subject: [PATCH] sqlite: fix issues --- packages/sqlite/src/private/Facade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sqlite/src/private/Facade.js b/packages/sqlite/src/private/Facade.js index c4aa9be3..66d2c85b 100644 --- a/packages/sqlite/src/private/Facade.js +++ b/packages/sqlite/src/private/Facade.js @@ -82,7 +82,7 @@ export default class Connection { const result = statement.get({ primary: value }); return result === undefined ? result - : O.filter(result, ([, $value]) => $value !== null); + : filter(result, ([, $value]) => $value !== null); } insert(collection, primary, document) { @@ -94,7 +94,7 @@ export default class Connection { : "default values"; const query = `insert into ${collection} ${$predicate} returning id`; const prepared = this.connection.prepare(query); - const $document = is_bun ? O.keymap(document, key => `$${key}`) : document; + const $document = is_bun ? keymap(document, key => `$${key}`) : document; const { id } = prepared.get($document); return { ...document, id }; }