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

@@ -6,7 +6,7 @@ export default class FilesController {
public async index ({ response }: HttpContextContract) {
return response.status(200).send({
files: File.query()
files: await File.all()
})
}

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()
})
}

View File

@@ -7,7 +7,7 @@ export default class UsersController {
public async index ({ response }: HttpContextContract) {
return response.status(200).send({
users: User.query()
users: await User.all()
})
}