projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b931f7
)
Server: show user created date for the api
author
Chocobozzz
<florian.bigard@gmail.com>
Fri, 23 Sep 2016 15:19:57 +0000
(17:19 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Fri, 23 Sep 2016 15:19:57 +0000
(17:19 +0200)
server/models/user.js
patch
|
blob
|
history
diff --git
a/server/models/user.js
b/server/models/user.js
index e76aab2ce5ad25d1459b90c9a7423cce8acef7d7..db6f1765b66ddf56ef54b0676c276c48b2455c2c 100644
(file)
--- 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 ------------------------------