Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 8bf6eff

Browse files
authored
Run scheduler once while waiting for setInterval()
1 parent cb6a0c6 commit 8bf6eff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ class NativePHP {
128128
let now = new Date();
129129
let delay = (60 - now.getSeconds()) * 1000 + (1000 - now.getMilliseconds());
130130
setTimeout(() => {
131+
console.log("Running scheduler...");
132+
(0, server_1.runScheduler)(apiPort.port, phpIniSettings);
131133
schedulerInterval = setInterval(() => {
132134
console.log("Running scheduler...");
133135
(0, server_1.runScheduler)(apiPort.port, phpIniSettings);

0 commit comments

Comments
 (0)