Skip to content

Commit

Permalink
add default value for createdAt on account creation.
Browse files Browse the repository at this point in the history
followed suggestions from hoodiehq#66
  • Loading branch information
thenamesben committed Feb 8, 2018
1 parent 3ddd933 commit ccaee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/accounts/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function addAccount (state, properties, options) {
type: 'user',
name: lowercaseUsername,
password: properties.password,
createdAt: properties.createdAt,
createdAt: properties.createdAt || new Date().toISOString(),
signedUpAt: properties.signedUpAt,
roles: [
'id:' + accountId
Expand Down

0 comments on commit ccaee44

Please sign in to comment.