This commit is contained in:
seb
2026-07-31 05:54:13 +02:00
parent 6db7d4d75c
commit db8b192094
32 changed files with 100 additions and 2048 deletions

View File

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