ok fine
This commit is contained in:
@@ -22,12 +22,16 @@ export class LumeStorage {
|
||||
return await invoke('secure_save', { key, value });
|
||||
}
|
||||
|
||||
public async secureLoad(key?: string) {
|
||||
public async secureLoad(key: string) {
|
||||
const value: string = await invoke('secure_load', { key });
|
||||
if (!value) return null;
|
||||
return value;
|
||||
}
|
||||
|
||||
public async secureRemove(key: string) {
|
||||
return await invoke('secure_remove', { key });
|
||||
}
|
||||
|
||||
public async checkAccount() {
|
||||
const result: Array<{ total: string }> = await this.db.select(
|
||||
'SELECT COUNT(*) AS "total" FROM accounts;'
|
||||
|
||||
Reference in New Issue
Block a user