diff --git a/app/common/BaseAPI.ts b/app/common/BaseAPI.ts index d1f46232..b5294e84 100644 --- a/app/common/BaseAPI.ts +++ b/app/common/BaseAPI.ts @@ -62,7 +62,7 @@ export class BaseAPI { ...options.headers }; if ((window as any)?.isGristBootPage) { - const parts = (new URL(window.location.href).pathname).split('/') + const parts = (new URL(window.location.href).pathname).split('/'); if (parts[0] === '' && parts[1] === 'boot' && parts[2] !== undefined) { this._headers['X-Boot-Key'] = parts[2]; } diff --git a/app/server/lib/BootProbes.ts b/app/server/lib/BootProbes.ts index 87337ba3..93dc3829 100644 --- a/app/server/lib/BootProbes.ts +++ b/app/server/lib/BootProbes.ts @@ -105,6 +105,9 @@ const _statusCheckProbe: Probe = { const baseUrl = server.getHomeUrl(req); const url = new URL(baseUrl); url.pathname = removeTrailingSlash(url.pathname) + '/status'; + const details = { + url: url.href, + }; try { const resp = await fetch(url); if (resp.status !== 200) { @@ -116,10 +119,12 @@ const _statusCheckProbe: Probe = { } return { success: true, + details, }; } catch (e) { return { success: false, + details, error: String(e), severity: 'fault', }; diff --git a/app/server/lib/InstallAdmin.ts b/app/server/lib/InstallAdmin.ts index 03c1439e..0a00bfa1 100644 --- a/app/server/lib/InstallAdmin.ts +++ b/app/server/lib/InstallAdmin.ts @@ -53,7 +53,7 @@ export class SimpleInstallAdmin extends InstallAdmin { } public override async isAdminUser(user: User): Promise { - if (user.id === this._dbManager.getSupportUserId()) { return true;} + if (user.id === this._dbManager.getSupportUserId()) { return true; } return this._installAdminEmail ? (user.loginEmail === this._installAdminEmail) : false; } }