fix build
This commit is contained in:
parent
b5f22bd6c9
commit
83387d28f4
|
@ -102,7 +102,7 @@ async function deployApp(deployment: any) {
|
||||||
source: devAppId,
|
source: devAppId,
|
||||||
target: productionAppId,
|
target: productionAppId,
|
||||||
}
|
}
|
||||||
const replication = new Replication(config)
|
var replication = new Replication(config)
|
||||||
|
|
||||||
console.log("Replication object created")
|
console.log("Replication object created")
|
||||||
await replication.replicate()
|
await replication.replicate()
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const adminUser = async (ctx: any) => {
|
||||||
ctx.throw(403, "Organisation already exists.")
|
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(
|
const response = await db.allDocs(
|
||||||
getGlobalUserParams(null, {
|
getGlobalUserParams(null, {
|
||||||
include_docs: true,
|
include_docs: true,
|
||||||
|
@ -67,7 +67,7 @@ export const adminUser = async (ctx: any) => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// don't worry about errors
|
// don't worry about errors
|
||||||
}
|
}
|
||||||
await db.put(quotas.generateNewUsageQuotaDoc())
|
await db.put(quotas.generateNewQuotaUsage())
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue