db backup and restore implemented

This commit is contained in:
dimitar committed 2025-12-12 02:08:03 +01:00
1 parent 8353a24f6b
commit 19ec020046
18 files changed
+847 -118

No files matched your search

+2 -1
View File
@@ -1,5 +1,5 @@
import { getDatabase } from '../src/lib/database/index.ts';
import { getDatabase } from '../src/lib/database/index';
async function verifyDatabase() {
console.log('Starting database verification...');
@@ -34,6 +34,7 @@ async function verifyDatabase() {
// 3. Create Fitness Profile
console.log('Creating fitness profile...');
const profile = await db.createFitnessProfile({
id: 'test-profile-id',
userId: user.id,
height: '180',
weight: '75',