feat: add crm webhook worker

This commit is contained in:
Codex
2026-06-29 04:35:19 +08:00
parent 0cff0d102d
commit ead1296f80
23 changed files with 1098 additions and 14 deletions

11
apps/worker/src/db.ts Normal file
View File

@@ -0,0 +1,11 @@
import { createPool } from '../../../packages/db/src/index.js';
import { config } from './config.js';
export const pool = createPool({
connectionString: config.databaseUrl,
max: 5,
});
export async function closePool() {
await pool.end();
}