Fixed failing tests

This commit is contained in:
ThaumRystra
2025-01-16 16:24:56 +02:00
parent a2d2f43bed
commit 0bf8fdc6d3
79 changed files with 268 additions and 649 deletions

View File

@@ -39,7 +39,7 @@ let ExperienceSchema = new SimpleSchema({
},
creatureId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
index: 1,
},
});
@@ -76,7 +76,7 @@ const insertExperience = new ValidatedMethod({
},
'creatureIds.$': {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}).validator(),
mixins: [RateLimiterMixin],
@@ -105,7 +105,7 @@ const removeExperience = new ValidatedMethod({
validate: new SimpleSchema({
experienceId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}).validator(),
mixins: [RateLimiterMixin],
@@ -146,7 +146,7 @@ const recomputeExperiences = new ValidatedMethod({
validate: new SimpleSchema({
creatureId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}).validator(),
mixins: [RateLimiterMixin],