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

@@ -11,7 +11,7 @@ const changeAllowedLibraries = new ValidatedMethod({
schema: new SimpleSchema({
_id: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
allowedLibraries: {
type: Array,
@@ -20,7 +20,7 @@ const changeAllowedLibraries = new ValidatedMethod({
},
'allowedLibraries.$': {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
allowedLibraryCollections: {
type: Array,
@@ -29,7 +29,7 @@ const changeAllowedLibraries = new ValidatedMethod({
},
'allowedLibraryCollections.$': {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}),
rateLimit: {
@@ -58,7 +58,7 @@ const toggleAllUserLibraries = new ValidatedMethod({
schema: new SimpleSchema({
_id: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
value: {
type: Boolean,

View File

@@ -21,7 +21,7 @@ const removeCreature = new ValidatedMethod({
validate: new SimpleSchema({
charId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}).validator(),
mixins: [RateLimiterMixin],