mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix 500 when no metadata provided
This commit is contained in:
parent
aa5209d225
commit
78d0ec0e30
@ -55,7 +55,9 @@ export default async (payload = {}) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (metadata.format) {
|
||||||
metadata.format = metadata.format.toUpperCase()
|
metadata.format = metadata.format.toUpperCase()
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
metadata.format === "FLAC" ||
|
metadata.format === "FLAC" ||
|
||||||
@ -106,7 +108,7 @@ export default async (payload = {}) => {
|
|||||||
...obj,
|
...obj,
|
||||||
publisher: {
|
publisher: {
|
||||||
user_id: payload.user_id,
|
user_id: payload.user_id,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
await track.save()
|
await track.save()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user