diff --git a/packages/builder/src/pages/builder/auth/_components/GoogleButton.svelte b/packages/builder/src/pages/builder/auth/_components/GoogleButton.svelte index 6962b61f99..0acaa127cc 100644 --- a/packages/builder/src/pages/builder/auth/_components/GoogleButton.svelte +++ b/packages/builder/src/pages/builder/auth/_components/GoogleButton.svelte @@ -11,7 +11,8 @@ {#if show} window.open(`/api/global/auth/${tenantId}/google`, "_blank")} + on:click={() => + window.open(`/api/global/auth/${tenantId}/google`, "_blank")} >
google icon diff --git a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte index 678aea0490..bcbdfe6460 100644 --- a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte @@ -243,7 +243,9 @@ }) }) } - const oidcResponse = await api.get(`/api/global/configs/${ConfigTypes.OIDC}`) + const oidcResponse = await api.get( + `/api/global/configs/${ConfigTypes.OIDC}` + ) const oidcDoc = await oidcResponse.json() if (!oidcDoc._id) { providers.oidc = { diff --git a/packages/builder/src/pages/builder/portal/manage/email/index.svelte b/packages/builder/src/pages/builder/portal/manage/email/index.svelte index 027eba4ef8..6e40442d4b 100644 --- a/packages/builder/src/pages/builder/portal/manage/email/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/email/index.svelte @@ -75,7 +75,9 @@ async function fetchSmtp() { loading = true // fetch the configs for smtp - const smtpResponse = await api.get(`/api/global/configs/${ConfigTypes.SMTP}`) + const smtpResponse = await api.get( + `/api/global/configs/${ConfigTypes.SMTP}` + ) const smtpDoc = await smtpResponse.json() if (!smtpDoc._id) { diff --git a/packages/worker/src/api/controllers/global/users.js b/packages/worker/src/api/controllers/global/users.js index 8706bcdcf6..a9d761bce0 100644 --- a/packages/worker/src/api/controllers/global/users.js +++ b/packages/worker/src/api/controllers/global/users.js @@ -149,7 +149,10 @@ exports.adminUser = async ctx => { ) if (response.rows.some(row => row.doc.admin)) { - ctx.throw(403, "You cannot initialise once an global user has been created.") + ctx.throw( + 403, + "You cannot initialise once an global user has been created." + ) } const user = {