email-verification
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -111,6 +111,3 @@ "use strict"; | ||
// create a TTL | ||
if (tempUserSchemaObject.hasOwnProperty('createdAt')) | ||
tempUserSchemaObject.createdAt.expires = options.expirationTime; | ||
else | ||
tempUserSchemaObject.createdAt = {expires: options.expirationTime, type: Date, default: Date.now}; | ||
tempUserSchemaObject.createdAt = {type: Date, expires: options.expirationTime.toString() + 's', default: Date.now}; | ||
@@ -117,0 +114,0 @@ tempUserSchema = mongoose.Schema(tempUserSchemaObject); |
{ | ||
"name": "email-verification", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Verify email sign-up using MongoDB.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
60186
241