Skip to content

Commit

Permalink
fixing set function bug for deprecated use (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertschnuell authored Oct 6, 2023
1 parent 6908768 commit 453951e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const Database = class {
*/
set(key:string, value:string, cb = null, deprecated = null) {
if (cb != null) { // @ts-ignore
return cbDb.get.call(this.db, key, value, makeDoneCallback(cb, deprecated));
return cbDb.set.call(this.db, key, value, makeDoneCallback(cb, deprecated));
}
return this.db.set(key, value);
}
Expand Down

0 comments on commit 453951e

Please sign in to comment.