Skip to content

Commit

Permalink
fix(kysely): delete did not call executeTakeFirst
Browse files Browse the repository at this point in the history
  • Loading branch information
MKRhere committed Mar 9, 2023
1 parent 5f0c2c3 commit 89a3c16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion kysely.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export const KyselyStore = <Session>(opts: Opts): SessionStore<Session> => {
async delete(key: string) {
await create;

await client.deleteFrom(table).where("key", "=", key);
await client //
.deleteFrom(table)
.where("key", "=", key)
.executeTakeFirst();
},
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@telegraf/session",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Session store adapters for Telegraf",
"main": "./memory.js",
"scripts": {
Expand Down

0 comments on commit 89a3c16

Please sign in to comment.