mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Add await
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user