From c63ee57bbd1171a6dfd4c9e3d1b0f6692b529341 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 23 Jul 2021 20:03:11 +0100 Subject: [PATCH] Linting. --- packages/auth/src/db/utils.js | 9 +++++---- packages/worker/src/api/controllers/global/users.js | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/auth/src/db/utils.js b/packages/auth/src/db/utils.js index 602520ef1a..7850a03fff 100644 --- a/packages/auth/src/db/utils.js +++ b/packages/auth/src/db/utils.js @@ -43,8 +43,7 @@ const DocumentTypes = { exports.DocumentTypes = DocumentTypes exports.APP_PREFIX = DocumentTypes.APP + SEPARATOR -exports.APP_DEV = -exports.APP_DEV_PREFIX = DocumentTypes.APP_DEV + SEPARATOR +exports.APP_DEV = exports.APP_DEV_PREFIX = DocumentTypes.APP_DEV + SEPARATOR exports.SEPARATOR = SEPARATOR function isDevApp(app) { @@ -223,8 +222,10 @@ exports.getAllApps = async ({ tenantId, dev, all } = {}) => { const noTenantId = split.length === 2 || split[1] === DocumentTypes.DEV // tenantId is always right before the UUID const possibleTenantId = split[split.length - 2] - return (tenantId === DEFAULT_TENANT_ID && noTenantId) || - (possibleTenantId === tenantId) + return ( + (tenantId === DEFAULT_TENANT_ID && noTenantId) || + possibleTenantId === tenantId + ) } return false }) diff --git a/packages/worker/src/api/controllers/global/users.js b/packages/worker/src/api/controllers/global/users.js index cb0be9e2ad..f6bf76c9c1 100644 --- a/packages/worker/src/api/controllers/global/users.js +++ b/packages/worker/src/api/controllers/global/users.js @@ -18,7 +18,6 @@ const env = require("../../../environment") const PLATFORM_INFO_DB = StaticDatabases.PLATFORM_INFO.name const TENANT_DOC = StaticDatabases.PLATFORM_INFO.docs.tenants - async function tryAddTenant(tenantId, userId, email) { const db = new CouchDB(PLATFORM_INFO_DB) const getDoc = async id => {