Correct name of expireAfterSeconds index

This commit is contained in:
Shane Kilkelly 2016-07-27 15:55:31 +01:00
parent 62d544ccfc
commit e70f121461

View file

@ -16,7 +16,7 @@ ProjectInviteSchema = new Schema(
sendingUserId: ObjectId sendingUserId: ObjectId
projectId: ObjectId projectId: ObjectId
privileges: String privileges: String
createdAt: {type: Date, default: Date.now, index: {expiresAfterSeconds: THIRTY_DAYS_IN_SECONDS}} createdAt: {type: Date, default: Date.now, index: {expireAfterSeconds: THIRTY_DAYS_IN_SECONDS}}
}, },
{ {
collection: 'projectInvites' collection: 'projectInvites'