3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00

wrong key

This commit is contained in:
iamshoXy 2024-06-01 16:31:09 +02:00
parent 75bac782da
commit bef652c8a8

View file

@ -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({