Skip to content

Commit

Permalink
sqlite: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 4, 2024
1 parent f9d83e3 commit 2b51c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sqlite/src/private/Facade.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 };
}
Expand Down

0 comments on commit 2b51c1f

Please sign in to comment.