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