feat(omni-trigger): resourceName from params (#1416)

Reviewed-on: daoyoucloud/tachybase#1416
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-07-31 15:26:08 +08:00 committed by sealday
parent 2b3bd07831
commit bcdf1e7972

View File

@ -19,10 +19,9 @@ export class OmniTrigger extends Trigger {
static TYPE = 'general-action';
triggerAction = async (context, next) => {
const {
resourceName,
actionName,
params: { filterByTk, values, triggerWorkflows = '', filter },
params: { filterByTk, values, triggerWorkflows = '', filter, resourceName, actionName },
} = context.action;
if (actionName !== 'trigger' || resourceName === 'workflows') {
return next();
}