Skip to content

Commit

Permalink
Refactor code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Feb 27, 2024
1 parent 04e049f commit fbbe29f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CommonServer/Types/Database/QueryHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion CommonServer/Types/Domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
(
Expand Down
4 changes: 3 additions & 1 deletion CommonServer/Utils/BasicCron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit fbbe29f

Please sign in to comment.