This commit is contained in:
2020-12-19 23:02:07 +01:00
parent 66aa4f957c
commit d71659e50d
16 changed files with 168 additions and 161 deletions

View File

@@ -1,5 +1,5 @@
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import {getTotalStats, getWeeklyStats, getMonthlyStats, getOtherStats, getDailyStats} from 'App/Helpers/StatsHelper'
import {getTotalStats, getWeeklyStats, getMonthlyStats, getDailyStats} from 'App/Helpers/StatsHelper'
import DockerBuild from "App/Models/DockerBuild"
import DockerCommand from "App/Models/DockerCommand"
@@ -10,13 +10,11 @@ export default class StatsController {
const weekly = await getWeeklyStats()
const monthly = await getMonthlyStats()
const total = await getTotalStats()
const other = await getOtherStats()
return response.status(200).send({
daily: daily,
weekly: weekly,
monthly: monthly,
total: total,
other : other
})
}