sparkles: Added model avatar uris to login response
This commit is contained in:
parent
eda7a3573c
commit
7a2e2f3465
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ UserController.prototype.login = function (req, res) {
|
|||
let models = {};
|
||||
Model.find({user: user.handle}, (err, modelList) => {
|
||||
if(err) return res.sendStatus(400);
|
||||
for ( let model of modelList ) models[model.handle] = model;
|
||||
for ( let model of modelList ) models[model.handle] = model.info();
|
||||
let drafts = {};
|
||||
Draft.find({user: user.handle}, (err, draftList) => {
|
||||
if(err) return res.sendStatus(400);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue