Add missing await

This commit is contained in:
Sander Declerck 2026-03-09 09:18:31 +01:00
parent 48221196be
commit f480d224b2
No known key found for this signature in database

View file

@ -32,9 +32,9 @@ export function getReportingServer() {
let state = {server: null, address: ""};
/** @param {http.IncomingMessage} req @param {http.ServerResponse} res */
function handleRequest(req, res) {
async function handleRequest(req, res) {
if (req.method === "POST" && req.url?.startsWith("/events/block")) {
parseBlockEventFromRequest(req).then((blockEvent) => {
await parseBlockEventFromRequest(req).then((blockEvent) => {
emitter.emit("blockReceived", blockEvent);
});
}