Merge pull request #45 from drift-labs/master

fixing premature writeHead
This commit is contained in:
Nour Alharithi
2023-12-11 09:38:46 -08:00
committed by GitHub

View File

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