mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30: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({
|
conditionSchema.add({
|
||||||
$or: [conditionSchema],
|
or: [conditionSchema],
|
||||||
$not: conditionSchema,
|
not: conditionSchema,
|
||||||
})
|
})
|
||||||
|
|
||||||
const stageSchema = new Schema({
|
const stageSchema = new Schema({
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user