mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Update backend/src/plugins/Automod/AutomodPlugin.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
3b14d83065
commit
9da6369961
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ const configPreprocessor: ConfigPreprocessorFn<AutomodPluginType> = options => {
|
||||||
if (rule["actions"]["log"] == null) {
|
if (rule["actions"]["log"] == null) {
|
||||||
rule["actions"]["log"] = true;
|
rule["actions"]["log"] = true;
|
||||||
}
|
}
|
||||||
if (rule["actions"]["clean"] === true && rule["actions"]["start_thread"]) {
|
if (rule["actions"]["clean"] && rule["actions"]["start_thread"]) {
|
||||||
throw new StrictValidationError([`Cannot have both clean and start_thread at rule '${rule.name}'`]);
|
throw new StrictValidationError([`Cannot have both clean and start_thread at rule '${rule.name}'`]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue