Respond to PR feedback.
This commit is contained in:
parent
080cfc8dcf
commit
281b88a86a
|
@ -42,10 +42,10 @@ export const fetch = async (ctx: Ctx) => {
|
||||||
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
||||||
baseUrl: env.PLATFORM_URL,
|
baseUrl: env.PLATFORM_URL,
|
||||||
isDev: env.isDev() && !env.isTest(),
|
isDev: env.isDev() && !env.isTest(),
|
||||||
|
maintenance: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
if (env.SELF_HOSTED) {
|
if (env.SELF_HOSTED) {
|
||||||
ctx.body.maintenance = []
|
|
||||||
if (await isSqsMissing()) {
|
if (await isSqsMissing()) {
|
||||||
ctx.body.maintenance.push({ type: MaintenanceType.SQS_MISSING })
|
ctx.body.maintenance.push({ type: MaintenanceType.SQS_MISSING })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue