fix: preservar datos y recuperar base local
This commit is contained in:
@@ -52,3 +52,13 @@ export class ToldoDB extends Dexie {
|
||||
}
|
||||
|
||||
export const db = new ToldoDB();
|
||||
|
||||
export async function openDatabase() {
|
||||
await db.open();
|
||||
return db;
|
||||
}
|
||||
|
||||
export async function resetDatabase() {
|
||||
await db.delete();
|
||||
await db.open();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface ExportData {
|
||||
}
|
||||
|
||||
export const CURRENT_SCHEMA_VERSION = 1;
|
||||
export const APP_VERSION = '0.0.5';
|
||||
export const APP_VERSION = '0.0.6';
|
||||
|
||||
export class ExportImportService {
|
||||
exportAll(data: ExportData['data']): ExportData {
|
||||
|
||||
Reference in New Issue
Block a user