Return null for missing cached items in AccountStorage
This commit is contained in:
@@ -120,6 +120,9 @@ export class AccountStorage{
|
|||||||
const c = Buffer.from(await cachedForage.getItem(key))
|
const c = Buffer.from(await cachedForage.getItem(key))
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
return null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(da.status < 200 || da.status >= 300){
|
if(da.status < 200 || da.status >= 300){
|
||||||
|
|||||||
Reference in New Issue
Block a user