Add "account" object in API /me/quizs

This commit is contained in:
Niko 2022-02-22 18:12:58 +01:00
parent 3de7d6b29a
commit ffc8f14280
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}],
},