Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47fdbd9

Browse files
use hash when removing a key
1 parent 7bf9329 commit 47fdbd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/key-manager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ export class KeyManager {
5858
return null
5959
}
6060

61-
async remove(key: string) {
62-
const bytes = base62.decode(key)
63-
const hash = this.hashFromBytes(bytes)
61+
async remove(hash: string) {
6462
return await this.storage.del(hash)
6563
}
6664

0 commit comments

Comments
 (0)