mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
Refactor code formatting
This commit is contained in:
parent
04e049f028
commit
fbbe29fd19
@ -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
|
||||
|
@ -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(),
|
||||
(
|
||||
|
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user