diff --git a/app/Controllers/Http/FilesController.ts b/app/Controllers/Http/FilesController.ts index 7c8a5d1..2bb89a1 100755 --- a/app/Controllers/Http/FilesController.ts +++ b/app/Controllers/Http/FilesController.ts @@ -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() }) } diff --git a/app/Controllers/Http/TranslationsController.ts b/app/Controllers/Http/TranslationsController.ts index 6a911ba..33abbd0 100644 --- a/app/Controllers/Http/TranslationsController.ts +++ b/app/Controllers/Http/TranslationsController.ts @@ -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() }) } diff --git a/app/Controllers/Http/UsersController.ts b/app/Controllers/Http/UsersController.ts index 7ee2439..42960b4 100755 --- a/app/Controllers/Http/UsersController.ts +++ b/app/Controllers/Http/UsersController.ts @@ -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() }) }