Skip to content

Commit b2f2dbd

Browse files
committed
Fix promisifying database get method
1 parent a46a76e commit b2f2dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Wrapper {
3131
databaseScopeAsync.use = (db: string) => Wrapper.wrapDocumentScope(use(db));
3232

3333
databaseScopeAsync.createAsync = promisify(databaseScopeAsync.create);
34-
databaseScopeAsync.getAsync = promisify(databaseScopeAsync.getAsync);
34+
databaseScopeAsync.getAsync = promisify(databaseScopeAsync.get);
3535
databaseScopeAsync.destroyAsync = promisify(databaseScopeAsync.destroy);
3636
databaseScopeAsync.listAsync = promisify(databaseScopeAsync.list);
3737
databaseScopeAsync.compactAsync = promisify(databaseScopeAsync.compact);

0 commit comments

Comments
 (0)