feat(beatsaver): log json data on error
All checks were successful
deploy / deploy (push) Successful in 29s

This commit is contained in:
Lee 2023-11-01 22:51:23 +00:00
parent 39205498ea
commit 1532b0fb4a

@ -88,6 +88,7 @@ async function connectWebsocket() {
const { type, msg } = json;
const { id, metadata, uploaded, updatedAt } = msg;
if (!metadata) {
console.log(msg);
throw new Error("Metadata is undefined for map " + id);
}
const { bpm, duration } = metadata;