1
This commit is contained in:
parent
cf27afb5b2
commit
611a3d4b16
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user