Use Postgres state DB for Telegram profile updates

This commit is contained in:
Ruslan Bakiev
2026-03-12 17:15:36 +07:00
parent 64e0d7565f
commit 42de04c1f6
6 changed files with 221 additions and 498 deletions

View File

@@ -1,4 +1,5 @@
import { startServer } from "./server";
import { closeProfileState } from "./profile-state";
const server = startServer();
@@ -15,8 +16,9 @@ async function shutdown(signal: string) {
resolve();
});
});
await closeProfileState();
} catch {
// ignore shutdown errors
// ignore shutdown errors during termination
}
process.exit(0);