[stronghold] return null if there is no record

pull/129/head
Ludea 2 years ago committed by GitHub
parent bf1106a0a5
commit 9045786d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -298,7 +298,14 @@ export class Store {
snapshotPath: this.path, snapshotPath: this.path,
client: this.client, client: this.client,
key: toBytesDto(key), key: toBytesDto(key),
}).then((v) => Uint8Array.from(v)); }).then((v) => {
if (v !== null || undefined) {
Uint8Array.from(v);
}
else {
null
}
})
} }
async insert( async insert(

Loading…
Cancel
Save