From f031e79392eca4921521828ce71772e4d99b5ff4 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 17 Mar 2014 10:01:29 -0700 Subject: [PATCH] Remove the generated flag as the id is set by the before hook --- lib/models/application.js | 2 +- test/model.application.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/models/application.js b/lib/models/application.js index 9af732f0..f537559e 100644 --- a/lib/models/application.js +++ b/lib/models/application.js @@ -50,7 +50,7 @@ var PushNotificationSettingSchema = { * Data model for Application */ var ApplicationSchema = { - id: {type: String, id: true, generated: true}, + id: {type: String, id: true}, // Basic information name: {type: String, required: true}, // The name description: String, // The description diff --git a/test/model.application.test.js b/test/model.application.test.js index d7f24df1..5d8a92a5 100644 --- a/test/model.application.test.js +++ b/test/model.application.test.js @@ -20,6 +20,7 @@ describe('Application', function () { assert(app.masterKey); assert(app.created); assert(app.modified); + assert.equal(typeof app.id, 'string'); done(err, result); }); });