Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-07 13:26:15 +02:00
parent f158ea2cb2
commit f12e544a49
14 changed files with 230 additions and 99 deletions

View File

@@ -6,7 +6,7 @@ export default class SubscribersController {
public async get ({ response }: HttpContextContract) {
return response.status(200).send({
count: Subscriber.query().count
count: Subscriber.query().count('* as total')
})
}