mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-26 17:40:27 +01:00
Remove useless semi-colon
This commit is contained in:
@@ -3,12 +3,12 @@ import CommandsRun from "App/Models/CommandsRun";
|
|||||||
import BuildsRun from "App/Models/BuildsRun";
|
import BuildsRun from "App/Models/BuildsRun";
|
||||||
|
|
||||||
interface Stats {
|
interface Stats {
|
||||||
start: Date;
|
start: Date
|
||||||
end: Date;
|
end: Date
|
||||||
|
|
||||||
development_seconds: number;
|
development_seconds: number
|
||||||
commands_ran: number;
|
commands_ran: number
|
||||||
builds_ran: number;
|
builds_ran: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getDevelopmentHours(start: Date, end: Date): Promise<number> {
|
export async function getDevelopmentHours(start: Date, end: Date): Promise<number> {
|
||||||
@@ -57,8 +57,8 @@ export async function getBuildsRan(start: Date, end: Date): Promise<number> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchStatistics(): Promise<Stats> {
|
export async function fetchStatistics(): Promise<Stats> {
|
||||||
const start = new Date("01-01-2000");
|
const start = new Date("01-01-2000")
|
||||||
const end = new Date();
|
const end = new Date()
|
||||||
|
|
||||||
const development_seconds = await getDevelopmentHours(start, end)
|
const development_seconds = await getDevelopmentHours(start, end)
|
||||||
const commands_ran = await getCommandsRan(start, end)
|
const commands_ran = await getCommandsRan(start, end)
|
||||||
@@ -74,8 +74,8 @@ export async function fetchStatistics(): Promise<Stats> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchMonthlyStatistics(): Promise<Stats> {
|
export async function fetchMonthlyStatistics(): Promise<Stats> {
|
||||||
const start = new Date(new Date().setMonth(new Date().getMonth() - 1));
|
const start = new Date(new Date().setMonth(new Date().getMonth() - 1))
|
||||||
const end = new Date();
|
const end = new Date()
|
||||||
|
|
||||||
const development_seconds = await getDevelopmentHours(start, end)
|
const development_seconds = await getDevelopmentHours(start, end)
|
||||||
const commands_ran = await getCommandsRan(start, end)
|
const commands_ran = await getCommandsRan(start, end)
|
||||||
@@ -91,8 +91,8 @@ export async function fetchMonthlyStatistics(): Promise<Stats> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchWeeklyStatistics(): Promise<Stats> {
|
export async function fetchWeeklyStatistics(): Promise<Stats> {
|
||||||
const start = new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000);
|
const start = new Date(new Date().getTime() - 7 * 24 * 60 * 60 * 1000)
|
||||||
const end = new Date();
|
const end = new Date()
|
||||||
|
|
||||||
const development_seconds = await getDevelopmentHours(start, end)
|
const development_seconds = await getDevelopmentHours(start, end)
|
||||||
const commands_ran = await getCommandsRan(start, end)
|
const commands_ran = await getCommandsRan(start, end)
|
||||||
@@ -108,8 +108,8 @@ export async function fetchWeeklyStatistics(): Promise<Stats> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchDailyStatistics(): Promise<Stats> {
|
export async function fetchDailyStatistics(): Promise<Stats> {
|
||||||
const start = new Date();
|
const start = new Date()
|
||||||
const end = new Date();
|
const end = new Date()
|
||||||
|
|
||||||
const development_seconds = await getDevelopmentHours(start, end)
|
const development_seconds = await getDevelopmentHours(start, end)
|
||||||
const commands_ran = await getCommandsRan(start, end)
|
const commands_ran = await getCommandsRan(start, end)
|
||||||
|
|||||||
Reference in New Issue
Block a user