fix: null means any playtype ya dummy

This commit is contained in:
zkldi
2022-12-21 09:54:49 +00:00
parent 4cc6b5fecc
commit f7b57011d0
2 changed files with 2 additions and 2 deletions
@@ -24,7 +24,7 @@ const FindCustomBMSTable: RequestHandler = (req, res, next) => {
});
}
if (customTable.playtype !== playtype) {
if (customTable.playtype && customTable.playtype !== playtype) {
return res.status(404).json({
success: false,
description: `The table '${tableUrlName}' exists, but is for ${customTable.playtype}, not ${playtype}.`,
@@ -23,7 +23,7 @@ const FindCustomBMSTable: RequestHandler = (req, res, next) => {
});
}
if (customTable.playtype !== playtype) {
if (customTable.playtype && customTable.playtype !== playtype) {
return res.status(404).json({
success: false,
description: `The table '${tableUrlName}' exists, but is for ${customTable.playtype}, not ${playtype}.`,