mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge pull request #480 from iamshoXy/counterfix
fix: wrong key for counter's counter_trigger rule name
This commit is contained in:
commit
4ead472a22
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ export const zTrigger = z
|
||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((val, ctx) => {
|
.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;
|
let reverseCondition = val.reverse_condition;
|
||||||
if (!reverseCondition) {
|
if (!reverseCondition) {
|
||||||
|
@ -52,7 +52,7 @@ export const zTrigger = z
|
||||||
});
|
});
|
||||||
|
|
||||||
const zTriggerFromString = zBoundedCharacters(0, 100).transform((val, ctx) => {
|
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);
|
const parsedCondition = parseCounterConditionString(val);
|
||||||
if (!parsedCondition) {
|
if (!parsedCondition) {
|
||||||
ctx.addIssue({
|
ctx.addIssue({
|
||||||
|
|
Loading…
Add table
Reference in a new issue