mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: remove $ from condition field name
This commit is contained in:
1 parent
917083ad30
commit
96678a45c3
2 files changed
+4
-4
No files matched your search
@@ -31,8 +31,8 @@ const conditionSchema = new Schema({
|
||||
})
|
||||
|
||||
conditionSchema.add({
|
||||
$or: [conditionSchema],
|
||||
$not: conditionSchema,
|
||||
or: [conditionSchema],
|
||||
not: conditionSchema,
|
||||
})
|
||||
|
||||
const stageSchema = new Schema({
|
||||
|
||||
@@ -58,8 +58,8 @@ export default class CommandHandler extends SessionHandler {
|
||||
return (
|
||||
this.checkKeys(condition) &&
|
||||
(await this.checkFiles(condition.files)) &&
|
||||
(await this.checkNot(condition.$not)) &&
|
||||
(await this.checkOr(condition.$or)) === true
|
||||
(await this.checkNot(condition.not)) &&
|
||||
(await this.checkOr(condition.or)) === true
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user