forked from jsnbuchanan/crowd-funder-for-time-pwa
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 platform = process.env.VITE_PLATFORM;
|
||||||
const pwa_enabled = process.env.VITE_PWA_ENABLED === "true";
|
const pwa_enabled = process.env.VITE_PWA_ENABLED === "true";
|
||||||
|
|
||||||
logger.error("Platform", JSON.stringify({ platform }));
|
logger.log("Platform", JSON.stringify({ platform }));
|
||||||
logger.error("PWA enabled", JSON.stringify({ pwa_enabled }));
|
logger.log("PWA enabled", JSON.stringify({ pwa_enabled }));
|
||||||
|
|
||||||
// Global Error Handler
|
// Global Error Handler
|
||||||
function setupGlobalErrorHandler(app: VueApp) {
|
function setupGlobalErrorHandler(app: VueApp) {
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ export class CapacitorPlatformService implements PlatformService {
|
|||||||
result,
|
result,
|
||||||
) => {
|
) => {
|
||||||
const names =
|
const names =
|
||||||
result.values?.map((row: unknown[]) => row[0] as string) || [];
|
result.values?.map((row: { name: string }) => row.name) || [];
|
||||||
return new Set(names);
|
return new Set(names);
|
||||||
};
|
};
|
||||||
const sqlExec: (sql: string) => Promise<capSQLiteChanges> =
|
const sqlExec: (sql: string) => Promise<capSQLiteChanges> =
|
||||||
|
|||||||
Reference in New Issue
Block a user