Remove useless semi-colon

This commit is contained in:
2021-10-08 15:14:34 +02:00
parent 2c5003b2c7
commit bedbf1c59b

View File

@@ -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)