feat: remove $ from condition field name

This commit is contained in:
wancat committed 2023-10-29 17:42:31 +08:00
1 parent 917083ad30
commit 96678a45c3
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -31,8 +31,8 @@ const conditionSchema = new Schema({
}) })
conditionSchema.add({ conditionSchema.add({
$or: [conditionSchema], or: [conditionSchema],
$not: conditionSchema, not: conditionSchema,
}) })
const stageSchema = new Schema({ const stageSchema = new Schema({
+2 -2
View File
@@ -58,8 +58,8 @@ export default class CommandHandler extends SessionHandler {
return ( return (
this.checkKeys(condition) && this.checkKeys(condition) &&
(await this.checkFiles(condition.files)) && (await this.checkFiles(condition.files)) &&
(await this.checkNot(condition.$not)) && (await this.checkNot(condition.not)) &&
(await this.checkOr(condition.$or)) === true (await this.checkOr(condition.or)) === true
) )
} }