fix extraction of migration names for SQLite via Capacitor
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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> =
|
||||
|
||||
Reference in New Issue
Block a user