make sure supabase is configured before retrieiving supabase app info (#97)
This commit is contained in:
@@ -38,6 +38,7 @@ import killPort from "kill-port";
|
|||||||
import util from "util";
|
import util from "util";
|
||||||
import log from "electron-log";
|
import log from "electron-log";
|
||||||
import { getSupabaseProjectName } from "../../supabase_admin/supabase_management_client";
|
import { getSupabaseProjectName } from "../../supabase_admin/supabase_management_client";
|
||||||
|
import { settings } from "happy-dom/lib/PropertySymbol.js";
|
||||||
|
|
||||||
const logger = log.scope("app_handlers");
|
const logger = log.scope("app_handlers");
|
||||||
|
|
||||||
@@ -232,8 +233,8 @@ export function registerAppHandlers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let supabaseProjectName: string | null = null;
|
let supabaseProjectName: string | null = null;
|
||||||
|
const settings = readSettings();
|
||||||
if (app.supabaseProjectId) {
|
if (app.supabaseProjectId && settings.supabase?.accessToken?.value) {
|
||||||
supabaseProjectName = await getSupabaseProjectName(app.supabaseProjectId);
|
supabaseProjectName = await getSupabaseProjectName(app.supabaseProjectId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user