Adding comments to areas that need to keep using old db creation method.
This commit is contained in:
parent
476f34fb93
commit
1095ad17c6
|
@ -93,6 +93,9 @@ exports.enableCronTrigger = async (appId, automation) => {
|
||||||
)
|
)
|
||||||
// Assign cron job ID from bull so we can remove it later if the cron trigger is removed
|
// Assign cron job ID from bull so we can remove it later if the cron trigger is removed
|
||||||
trigger.cronJobId = job.id
|
trigger.cronJobId = job.id
|
||||||
|
// can't use getAppDB here as this is likely to be called from dev app,
|
||||||
|
// but this call could be for dev app or prod app, need to just use what
|
||||||
|
// was passed in
|
||||||
const db = new CouchDB(appId)
|
const db = new CouchDB(appId)
|
||||||
const response = await db.put(automation)
|
const response = await db.put(automation)
|
||||||
automation._id = response.id
|
automation._id = response.id
|
||||||
|
|
|
@ -23,6 +23,7 @@ const getAppPairs = appIds => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getAppRows = async appId => {
|
const getAppRows = async appId => {
|
||||||
|
// need to specify the app ID, as this is used for different apps in one call
|
||||||
const appDb = new CouchDB(appId)
|
const appDb = new CouchDB(appId)
|
||||||
const response = await appDb.allDocs(
|
const response = await appDb.allDocs(
|
||||||
getRowParams(null, null, {
|
getRowParams(null, null, {
|
||||||
|
|
Loading…
Reference in New Issue