Skip to content

Commit 6990cf4

Browse files
authored
fix: compilation errors (#405)
1 parent 5bd3b25 commit 6990cf4

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

services/api/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,8 @@ if (
26342634
}
26352635
};
26362636

2637-
process.on("SIGTERM", () => shutdown("SIGTERM"));
2638-
process.on("SIGINT", () => shutdown("SIGINT"));
2637+
process.on("SIGTERM", () => void shutdown("SIGTERM"));
2638+
process.on("SIGINT", () => void shutdown("SIGINT"));
26392639

26402640
// await migrationService.fixNullPassInOpinionTable({ db });
26412641
// await migrationService.fixEmptyOpinionIdInPolisClusterOpinionTable({ db });

services/math-updater/src/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import {
1616
initializeGoogleCloudCredentials,
1717
type GoogleCloudCredentials,
1818
} from "./shared-backend/googleCloudAuth.js";
19-
import { sql } from "drizzle-orm";
20-
import { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2119
import pLimit from "p-limit";
2220

2321
/**
@@ -272,16 +270,16 @@ async function main() {
272270
log.info("[Math Updater] Shutting down gracefully...");
273271

274272
// Delete any pending jobs before stopping
275-
await deleteOldJobs(db);
273+
// await deleteOldJobs(db);
276274

277275
await boss.stop();
278276
log.info("[Math Updater] pg-boss stopped");
279277
process.exit(0);
280278
};
281279

282-
process.on("SIGTERM", shutdown);
283-
process.on("SIGINT", shutdown);
284-
process.on("SIGHUP", shutdown);
280+
process.on("SIGTERM", () => void shutdown());
281+
process.on("SIGINT", () => void shutdown());
282+
process.on("SIGHUP", () => void shutdown());
285283
}
286284

287285
main().catch((error) => {

0 commit comments

Comments
 (0)