Refactor code formatting

This commit is contained in:
Simon Larsen 2024-02-27 17:53:58 +00:00
parent 04e049f028
commit fbbe29fd19
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
3 changed files with 10 additions and 3 deletions

View File

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

View File

@ -9,7 +9,10 @@ export default class Domain extends DomainCommon {
verificationText: string
): Promise<boolean> {
return new Promise(
(resolve: (isVerfified: boolean) => void, reject: PromiseRejectErrorFunction) => {
(
resolve: (isVerfified: boolean) => void,
reject: PromiseRejectErrorFunction
) => {
dns.resolveTxt(
domain.toString(),
(

View File

@ -13,7 +13,9 @@ type BasicCronProps = {
type BasicCronFunction = (props: BasicCronProps) => void;
const BasicCron: BasicCronFunction = async (props: BasicCronProps): Promise<void> => {
const BasicCron: BasicCronFunction = async (
props: BasicCronProps
): Promise<void> => {
const { jobName, options, runFunction } = props;
cron.schedule(options.schedule, async () => {