this bug existed and i didint knew it aaaaaaaaaaaaaaaaa

This commit is contained in:
Ashley 2023-03-04 14:54:21 +00:00
parent 243c4e9c1c
commit eef471c9a2

View file

@ -224,8 +224,8 @@ module.exports = function (app, config, renderTemplate) {
}
let support;
if (String(json.Description) !== "[object Object]") {
support = (PATREON_REGEX.exec(json.Description) ?? {}).groups;
if (String(inv_vid.description) !== "[object Object]") {
support = (PATREON_REGEX.exec(inv_vid.description) ?? {}).groups;
}
let badges = "";
@ -283,7 +283,8 @@ module.exports = function (app, config, renderTemplate) {
inv_vid,
lyrics: "",
});
} catch {
} catch (error) {
console.error(error);
return res.redirect("/?fromerror=41");
}
});