fixing premature writeHead

This commit is contained in:
Nour Alharithi
2023-12-11 09:34:23 -08:00
parent 41728ad1f7
commit 92916e6b6d

View File

@@ -857,9 +857,6 @@ const main = async () => {
normedMarketIndex normedMarketIndex
); );
} }
res.writeHead(200);
res.end(JSON.stringify(l2Formatted));
} else { } else {
// make the BNs into strings // make the BNs into strings
l2Formatted = l2WithBNToStrings(l2); l2Formatted = l2WithBNToStrings(l2);