1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Fix external workflow triggers not passing though instance ID

This commit is contained in:
Andrew Kingston 2020-09-14 09:12:17 +01:00
parent 9467c5562e
commit d13a597ed2

View file

@ -87,5 +87,8 @@ exports.getLogicList = async function(ctx) {
exports.trigger = async function(ctx) { exports.trigger = async function(ctx) {
const db = new CouchDB(ctx.user.instanceId) const db = new CouchDB(ctx.user.instanceId)
let workflow = await db.get(ctx.params.id) let workflow = await db.get(ctx.params.id)
await triggers.externalTrigger(workflow, ctx.request.body) await triggers.externalTrigger(workflow, {
...ctx.request.body,
instanceId: ctx.user.instanceId,
})
} }