fix extraction of migration names for SQLite via Capacitor

This commit is contained in:
2025-06-05 18:13:33 -06:00
parent 8e57692387
commit 493438215c
2 changed files with 3 additions and 3 deletions

View File

@@ -13,8 +13,8 @@ import { logger } from "./utils/logger";
const platform = process.env.VITE_PLATFORM;
const pwa_enabled = process.env.VITE_PWA_ENABLED === "true";
logger.error("Platform", JSON.stringify({ platform }));
logger.error("PWA enabled", JSON.stringify({ pwa_enabled }));
logger.log("Platform", JSON.stringify({ platform }));
logger.log("PWA enabled", JSON.stringify({ pwa_enabled }));
// Global Error Handler
function setupGlobalErrorHandler(app: VueApp) {

View File

@@ -240,7 +240,7 @@ export class CapacitorPlatformService implements PlatformService {
result,
) => {
const names =
result.values?.map((row: unknown[]) => row[0] as string) || [];
result.values?.map((row: { name: string }) => row.name) || [];
return new Set(names);
};
const sqlExec: (sql: string) => Promise<capSQLiteChanges> =