Fixed failing tests
This commit is contained in:
@@ -30,7 +30,7 @@ const LibraryCollectionSchema = new SimpleSchema({
|
||||
},
|
||||
'libraries.$': {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
showInMarket: {
|
||||
index: 1,
|
||||
@@ -78,7 +78,7 @@ const updateLibraryCollection = new ValidatedMethod({
|
||||
schema: {
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
update: {
|
||||
type: LibraryCollectionSchema
|
||||
|
||||
@@ -23,7 +23,7 @@ let LibraryNodes = new Mongo.Collection('libraryNodes');
|
||||
let LibraryNodeSchema = new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
|
||||
@@ -29,7 +29,7 @@ const copyLibraryNodeTo = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
parent: {
|
||||
type: RefSchema,
|
||||
|
||||
@@ -24,7 +24,7 @@ const duplicateLibraryNode = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
}
|
||||
}).validator(),
|
||||
mixins: [RateLimiterMixin],
|
||||
|
||||
@@ -13,7 +13,7 @@ const updateReferenceNode = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
_id: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
}
|
||||
}).validator(),
|
||||
mixins: [RateLimiterMixin],
|
||||
|
||||
Reference in New Issue
Block a user