feat(beatsaver): log json data on error
All checks were successful
deploy / deploy (push) Successful in 29s
All checks were successful
deploy / deploy (push) Successful in 29s
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user