Skip to content

Commit 43d6301

Browse files
authored
Update index.js
1 parent 16b81a1 commit 43d6301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class Autopass extends ReadyResource {
310310
}
311311

312312
async addWriter(data) {
313-
if (typeof key === 'string') key = b4a.from(key, 'hex')
313+
if (typeof data === 'string') data = b4a.from(data, 'hex')
314314
if (b4a.isBuffer(data)) data = { key: data, name: null, readOnly: false }
315315
await this.base.append(encode('@autopass/add-writer', data))
316316
return true

0 commit comments

Comments
 (0)