Skip to content

Commit baf075f

Browse files
committed
Allow graveyard maps for BN
1 parent 7e0c1df commit baf075f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/api.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ router.postAsync("/request", ensure.loggedIn, async (req, res) => {
162162
}
163163
}
164164

165-
if (isBN(settings) && map.status !== "Pending") {
166-
errors.push(`Expected a Pending map (this is ${map.status})`);
165+
// TODO: Make this configurable setting
166+
if (isBN(settings) && !["Pending", "Graveyard"].includes(map.status)) {
167+
errors.push(`Expected a Pending/Graveyard map (this is ${map.status})`);
167168
}
168169

169170
// disable this until osumod can handle username changes properly

0 commit comments

Comments
 (0)