Add await

This commit is contained in:
2021-08-14 11:19:40 +02:00
parent 0a534d6f2f
commit f9098be315
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ export default class TranslationsController {
public async index ({ response }: HttpContextContract) {
return response.status(200).send({
translations: Translation.all()
translations: await Translation.all()
})
}