This commit is contained in:
aozhiwei 2024-06-11 11:32:40 +08:00
parent cf27afb5b2
commit 611a3d4b16

View File

@ -11,6 +11,7 @@ async function webhooks(req, rsp) {
const dbKey = 'BcEventDb' + idx; const dbKey = 'BcEventDb' + idx;
const {err, conn} = await app.getDbConn(dbKey); const {err, conn} = await app.getDbConn(dbKey);
if (err) { if (err) {
rsp.status(500).send(err);
console.log(err); console.log(err);
return; return;
} }
@ -36,6 +37,9 @@ async function webhooks(req, rsp) {
['raw_data', body], ['raw_data', body],
] ]
); );
rsp.send(utils.jsonEncode({"status": "ok"}));
} catch (e) {
rsp.status(500).send(e);
} finally { } finally {
conn.release(); conn.release();
} }