1
0
Fork 0

sparkles: Added model avatar uris to login response

This commit is contained in:
Joost De Cock 2019-06-17 17:33:03 +02:00 committed by Joost De Cock
parent eda7a3573c
commit 7a2e2f3465

View file

@ -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);