From fbbe29fd193e0d8f6f6d2c0781da31a68020d47f Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 27 Feb 2024 17:53:58 +0000 Subject: [PATCH] Refactor code formatting --- CommonServer/Types/Database/QueryHelper.ts | 4 +++- CommonServer/Types/Domain.ts | 5 ++++- CommonServer/Utils/BasicCron.ts | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CommonServer/Types/Database/QueryHelper.ts b/CommonServer/Types/Database/QueryHelper.ts index 863879d832..38254c9952 100644 --- a/CommonServer/Types/Database/QueryHelper.ts +++ b/CommonServer/Types/Database/QueryHelper.ts @@ -61,7 +61,9 @@ export default class QueryHelper { type ConstructQueryFunction = (alias: string) => string; - const constructQuery: ConstructQueryFunction = (alias: string): string => { + const constructQuery: ConstructQueryFunction = ( + alias: string + ): string => { let query: string = '('; query += rid diff --git a/CommonServer/Types/Domain.ts b/CommonServer/Types/Domain.ts index 61c6c35ad1..13ebb5488f 100644 --- a/CommonServer/Types/Domain.ts +++ b/CommonServer/Types/Domain.ts @@ -9,7 +9,10 @@ export default class Domain extends DomainCommon { verificationText: string ): Promise { return new Promise( - (resolve: (isVerfified: boolean) => void, reject: PromiseRejectErrorFunction) => { + ( + resolve: (isVerfified: boolean) => void, + reject: PromiseRejectErrorFunction + ) => { dns.resolveTxt( domain.toString(), ( diff --git a/CommonServer/Utils/BasicCron.ts b/CommonServer/Utils/BasicCron.ts index 9d4cc73b60..758ce3bfb5 100644 --- a/CommonServer/Utils/BasicCron.ts +++ b/CommonServer/Utils/BasicCron.ts @@ -13,7 +13,9 @@ type BasicCronProps = { type BasicCronFunction = (props: BasicCronProps) => void; -const BasicCron: BasicCronFunction = async (props: BasicCronProps): Promise => { +const BasicCron: BasicCronFunction = async ( + props: BasicCronProps +): Promise => { const { jobName, options, runFunction } = props; cron.schedule(options.schedule, async () => {