Server: show user created date for the api
authorChocobozzz <florian.bigard@gmail.com>
Fri, 23 Sep 2016 15:19:57 +0000 (17:19 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 23 Sep 2016 15:19:57 +0000 (17:19 +0200)
server/models/user.js

index e76aab2ce5ad25d1459b90c9a7423cce8acef7d7..db6f1765b66ddf56ef54b0676c276c48b2455c2c 100644 (file)
@@ -57,7 +57,8 @@ function toFormatedJSON () {
   return {
     id: this._id,
     username: this.username,
-    role: this.role
+    role: this.role,
+    createdDate: this.createdDate
   }
 }
 // ------------------------------ STATICS ------------------------------