1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

fix build

This commit is contained in:
Martin McKeaveney 2022-04-26 13:58:33 +01:00
parent 8b32d85b51
commit 630f29444d
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
})