Fixed failing tests
This commit is contained in:
@@ -8,12 +8,12 @@ let Invites = new Mongo.Collection('invites');
|
||||
let InviteSchema = new SimpleSchema({
|
||||
inviter: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
index: 1,
|
||||
},
|
||||
invitee: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
optional: true,
|
||||
index: 1,
|
||||
},
|
||||
@@ -89,7 +89,7 @@ const getInviteToken = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
inviteId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
}).validator(),
|
||||
mixins: [RateLimiterMixin],
|
||||
@@ -160,7 +160,7 @@ const revokeInvite = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
inviteId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
}).validator(),
|
||||
mixins: [RateLimiterMixin],
|
||||
|
||||
@@ -76,7 +76,7 @@ const userSchema = new SimpleSchema({
|
||||
},
|
||||
'subscribedLibraries.$': {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
subscribedLibraryCollections: {
|
||||
type: Array,
|
||||
@@ -85,7 +85,7 @@ const userSchema = new SimpleSchema({
|
||||
},
|
||||
'subscribedLibraryCollections.$': {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
subscribedCharacters: {
|
||||
type: Array,
|
||||
@@ -94,7 +94,7 @@ const userSchema = new SimpleSchema({
|
||||
},
|
||||
'subscribedCharacters.$': {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
fileStorageUsed: {
|
||||
type: Number,
|
||||
@@ -280,7 +280,7 @@ Meteor.users.subscribeToLibrary = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
libraryId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
subscribe: {
|
||||
type: Boolean,
|
||||
@@ -312,7 +312,7 @@ Meteor.users.subscribeToLibraryCollection = new ValidatedMethod({
|
||||
validate: new SimpleSchema({
|
||||
libraryCollectionId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
subscribe: {
|
||||
type: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user