Skip to content

Commit 645e861

Browse files
ci: apply automated fixes
1 parent 368a3ec commit 645e861

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Handler, HandlerEvent, HandlerContext } from "@netlify/functions";
1+
import type { Handler, HandlerEvent, HandlerContext } from '@netlify/functions'
22

33
/**
44
* Netlify Background + Scheduled Function - Test scheduled function (10 seconds)
@@ -15,29 +15,29 @@ import type { Handler, HandlerEvent, HandlerContext } from "@netlify/functions";
1515
*/
1616
export const handler: Handler = async (
1717
event: HandlerEvent,
18-
context: HandlerContext
18+
context: HandlerContext,
1919
) => {
2020
console.log(
21-
"[test-scheduled-10s] Test message - function executed at",
22-
new Date().toISOString()
23-
);
21+
'[test-scheduled-10s] Test message - function executed at',
22+
new Date().toISOString(),
23+
)
2424

2525
return {
2626
statusCode: 200,
2727
body: JSON.stringify({
2828
success: true,
29-
message: "Test scheduled function executed",
29+
message: 'Test scheduled function executed',
3030
timestamp: new Date().toISOString(),
3131
}),
32-
};
33-
};
32+
}
33+
}
3434

3535
/**
3636
* Netlify function configuration
3737
* - type: 'experimental-background' enables background execution (15 min timeout)
3838
* - schedule: Cron expression for scheduled execution (every 2 minutes)
3939
*/
4040
export const config = {
41-
type: "experimental-background" as const,
42-
schedule: "*/2 * * * *", // Every 2 minutes (5-field cron)
43-
};
41+
type: 'experimental-background' as const,
42+
schedule: '*/2 * * * *', // Every 2 minutes (5-field cron)
43+
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Handler, HandlerEvent, HandlerContext } from "@netlify/functions";
1+
import type { Handler, HandlerEvent, HandlerContext } from '@netlify/functions'
22

33
/**
44
* Netlify Background + Scheduled Function - Test scheduled function
@@ -15,29 +15,29 @@ import type { Handler, HandlerEvent, HandlerContext } from "@netlify/functions";
1515
*/
1616
export const handler: Handler = async (
1717
event: HandlerEvent,
18-
context: HandlerContext
18+
context: HandlerContext,
1919
) => {
2020
console.log(
21-
"[test-scheduled] Test message - function executed at",
22-
new Date().toISOString()
23-
);
21+
'[test-scheduled] Test message - function executed at',
22+
new Date().toISOString(),
23+
)
2424

2525
return {
2626
statusCode: 200,
2727
body: JSON.stringify({
2828
success: true,
29-
message: "Test scheduled function executed",
29+
message: 'Test scheduled function executed',
3030
timestamp: new Date().toISOString(),
3131
}),
32-
};
33-
};
32+
}
33+
}
3434

3535
/**
3636
* Netlify function configuration
3737
* - type: 'experimental-background' enables background execution (15 min timeout)
3838
* - schedule: Cron expression for scheduled execution (every minute)
3939
*/
4040
export const config = {
41-
type: "experimental-background" as const,
42-
schedule: "* * * * *", // Every minute (5-field cron)
43-
};
41+
type: 'experimental-background' as const,
42+
schedule: '* * * * *', // Every minute (5-field cron)
43+
}

0 commit comments

Comments
 (0)