Skip to content

Commit

Permalink
Defaults lastName to emtpy string
Browse files Browse the repository at this point in the history
Fixes #41
  • Loading branch information
defvol committed Feb 21, 2014
1 parent f970ddb commit 82f2ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/citizen.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var regexps = require('lib/regexps');

var CitizenSchema = new Schema({
firstName: { type: String }
, lastName: { type: String }
, lastName: { type: String, default: '' }
, username: { type: String }
, avatar: { type: String }
, email: { type: String, lowercase: true, trim: true, match: regexps.email } // main email
Expand Down

0 comments on commit 82f2ee4

Please sign in to comment.