fix build

This commit is contained in:
Martin McKeaveney 2022-04-26 13:58:33 +01:00
parent b5f22bd6c9
commit 83387d28f4
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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
})