Use Postgres state DB for Telegram profile updates
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user