[Code quality] fix

This commit is contained in:
everoddandeven 2024-10-21 16:46:57 +02:00
parent bb21a7ceb4
commit 33b5c0313c

View file

@ -249,7 +249,7 @@ export class DaemonService {
}
private async openDatabase(): Promise<IDBPDatabase<any>> {
return await openDB<IDBPDatabase<any>>(this.dbName, 1, {
return await openDB<any>(this.dbName, 1, {
upgrade(db) {
// Crea un archivio (store) per i settings se non esiste già
if (!db.objectStoreNames.contains('settingsStore')) {
@ -371,7 +371,9 @@ export class DaemonService {
}
}
throw new Error(error.message);
const errorMessage: string = `${error.message}`;
throw new Error(errorMessage);
}
throw error;