From 83387d28f40077c253bbf38458643e021a80980b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 26 Apr 2022 13:58:33 +0100 Subject: [PATCH] fix build --- packages/server/src/api/controllers/deploy/index.ts | 2 +- packages/worker/src/api/controllers/global/users.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/deploy/index.ts b/packages/server/src/api/controllers/deploy/index.ts index ef8c15aeea..13bc1d3173 100644 --- a/packages/server/src/api/controllers/deploy/index.ts +++ b/packages/server/src/api/controllers/deploy/index.ts @@ -102,7 +102,7 @@ async function deployApp(deployment: any) { source: devAppId, target: productionAppId, } - const replication = new Replication(config) + var replication = new Replication(config) console.log("Replication object created") await replication.replicate() diff --git a/packages/worker/src/api/controllers/global/users.ts b/packages/worker/src/api/controllers/global/users.ts index f132eb68cc..441a1f15ab 100644 --- a/packages/worker/src/api/controllers/global/users.ts +++ b/packages/worker/src/api/controllers/global/users.ts @@ -50,7 +50,7 @@ export const adminUser = async (ctx: any) => { ctx.throw(403, "Organisation already exists.") } - const response = await doWithGlobalDB(tenantId, async db => { + const response = await doWithGlobalDB(tenantId, async (db: any) => { const response = await db.allDocs( getGlobalUserParams(null, { include_docs: true, @@ -67,7 +67,7 @@ export const adminUser = async (ctx: any) => { } catch (err) { // don't worry about errors } - await db.put(quotas.generateNewUsageQuotaDoc()) + await db.put(quotas.generateNewQuotaUsage()) } return response })