fix: preservar datos y recuperar base local

This commit is contained in:
mono
2026-10-25 21:27:44 -05:00
parent a21c43684c
commit 6a3352a96c
19 changed files with 183 additions and 14 deletions

View File

@@ -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();
}

View File

@@ -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 {