From: Chocobozzz Date: Fri, 23 Sep 2016 15:19:57 +0000 (+0200) Subject: Server: show user created date for the api X-Git-Tag: v0.0.1-alpha~729 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d74a0680f72021f82c2718cbf6c490a7715a9e35;p=github%2FChocobozzz%2FPeerTube.git Server: show user created date for the api --- diff --git a/server/models/user.js b/server/models/user.js index e76aab2ce..db6f1765b 100644 --- a/server/models/user.js +++ b/server/models/user.js @@ -57,7 +57,8 @@ function toFormatedJSON () { return { id: this._id, username: this.username, - role: this.role + role: this.role, + createdDate: this.createdDate } } // ------------------------------ STATICS ------------------------------