This commit is contained in:
seb
2026-06-24 09:37:34 +02:00
parent 977ece3099
commit 185b68fe52
16 changed files with 1312 additions and 89 deletions

View File

@@ -1,11 +1,13 @@
import './config/env.js';
import { startApi, stopApi } from './api/index.js';
import { closeDb } from './db/client.js';
import { closePool } from './db/mssqlClient.js';
async function shutdown() {
await stopApi();
try {
closeDb();
await closePool();
} catch (error) {
console.error('Failed to close database:', error);
process.exitCode = 1;