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';
|
static TYPE = 'general-action';
|
||||||
triggerAction = async (context, next) => {
|
triggerAction = async (context, next) => {
|
||||||
const {
|
const {
|
||||||
resourceName,
|
params: { filterByTk, values, triggerWorkflows = '', filter, resourceName, actionName },
|
||||||
actionName,
|
|
||||||
params: { filterByTk, values, triggerWorkflows = '', filter },
|
|
||||||
} = context.action;
|
} = context.action;
|
||||||
|
|
||||||
if (actionName !== 'trigger' || resourceName === 'workflows') {
|
if (actionName !== 'trigger' || resourceName === 'workflows') {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user