From d13a597ed2709022994872b25aaf25c77bd51e6b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 14 Sep 2020 09:12:17 +0100 Subject: [PATCH] Fix external workflow triggers not passing though instance ID --- packages/server/src/api/controllers/workflow/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/workflow/index.js b/packages/server/src/api/controllers/workflow/index.js index f22afe537c..6bae766b62 100644 --- a/packages/server/src/api/controllers/workflow/index.js +++ b/packages/server/src/api/controllers/workflow/index.js @@ -87,5 +87,8 @@ exports.getLogicList = async function(ctx) { exports.trigger = async function(ctx) { const db = new CouchDB(ctx.user.instanceId) 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, + }) }