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:
parent
2b3bd07831
commit
bcdf1e7972
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user