mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Update
This commit is contained in:
parent
8a4f7fe0e8
commit
0a11b073e0
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ export const zTrigger = z
|
|||
.optional(),
|
||||
})
|
||||
.transform((val, ctx) => {
|
||||
const ruleName = String(ctx.path[ctx.path.length - 2]).trim();
|
||||
const ruleName = String(ctx.path[ctx.path.length - 1]).trim();
|
||||
|
||||
let reverseCondition = val.reverse_condition;
|
||||
if (!reverseCondition) {
|
||||
|
@ -51,7 +51,7 @@ export const zTrigger = z
|
|||
});
|
||||
|
||||
const zTriggerFromString = zBoundedCharacters(0, 100).transform((val, ctx) => {
|
||||
const ruleName = String(ctx.path[ctx.path.length - 2]).trim();
|
||||
const ruleName = String(ctx.path[ctx.path.length - 1]).trim();
|
||||
const parsedCondition = parseCounterConditionString(val);
|
||||
if (!parsedCondition) {
|
||||
ctx.addIssue({
|
||||
|
|
Loading…
Add table
Reference in a new issue