Add "account" object in API /me/quizs
This commit is contained in:
parent
3de7d6b29a
commit
ffc8f14280
|
@ -88,6 +88,9 @@ module.exports = {
|
|||
to: uactor,
|
||||
from: { $in: actors },
|
||||
}).toArray()
|
||||
for (var i in quizs)
|
||||
quizs[i].from = await api.accounts.getAccount(quizs[i].from)
|
||||
|
||||
return res.json(quizs)
|
||||
}],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue