Skip to content

Commit be62bb6

Browse files
committed
fix: actually call setupScheduledTasks() at boot
1 parent 9838fb3 commit be62bb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import xmlparser from '@/middleware/xml-parser';
55
import { connect as connectCache } from '@/cache';
66
import { checkMarkedDeletions, connect as connectDatabase } from '@/database';
77
import { startGRPCServer } from '@/services/grpc/server';
8-
import { fullUrl, getValueFromHeaders } from '@/util';
8+
import { fullUrl, getValueFromHeaders, setupScheduledTasks } from '@/util';
99
import { LOG_INFO, LOG_SUCCESS, LOG_WARN } from '@/logger';
1010
import conntest from '@/services/conntest';
1111
import cbvc from '@/services/cbvc';
@@ -118,6 +118,8 @@ async function main(): Promise<void> {
118118

119119
await checkMarkedDeletions();
120120

121+
setupScheduledTasks();
122+
121123
app.listen(config.http.port, () => {
122124
LOG_SUCCESS(`HTTP server started on port ${config.http.port}`);
123125
});

0 commit comments

Comments
 (0)