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

@@ -6,7 +6,7 @@ import { assertViewPermission } from '/imports/api/creature/creatures/creaturePe
let schema = new SimpleSchema({
creatureId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
});

View File

@@ -206,7 +206,7 @@ Meteor.publish('library', function (libraryId) {
let libraryIdSchema = new SimpleSchema({
libraryId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
});
@@ -254,7 +254,7 @@ Meteor.publish('libraryNodes', function (libraryId, extraFields) {
const nodeIdSchema = new SimpleSchema({
libraryNodeId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
});

View File

@@ -13,7 +13,7 @@ import EngineActions from '/imports/api/engine/action/EngineActions';
let schema = new SimpleSchema({
creatureId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
});

View File

@@ -45,7 +45,7 @@ let userIdsSchema = new SimpleSchema({
},
'ids.$': {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
}
})

View File

@@ -14,7 +14,7 @@ JsonRoutes.add('get', 'api/creature/:id', function (req, res) {
new SimpleSchema({
creatureId: {
type: String,
regEx: SimpleSchema.RegEx.Id,
max: 32,
},
}).validate({ creatureId });
} catch (e) {