Skip to content
/ api Public

Commit 63cd1a8

Browse files
committed
bug: if we change servers allow to assign
1 parent 78baa50 commit 63cd1a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/matches/matches.controller.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,11 @@ export class MatchesController {
418418
throw Error("unable to find match");
419419
}
420420

421-
if (status === "Live" && data.old.status !== "WaitingForServer") {
421+
if (
422+
(status === "Live" && data.old.status !== "WaitingForServer") ||
423+
(status === "WaitingForServer" &&
424+
data.old.server_id !== data.new.server_id)
425+
) {
422426
if (match.server) {
423427
if (match.server.reserved_by_match_id === matchId) {
424428
return;

0 commit comments

Comments
 (0)