Skip to content

Commit

Permalink
Removed websocket message
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Mar 28, 2024
1 parent a1f9ee1 commit 5d42686
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main/java/telraam/api/TeamResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import telraam.database.daos.BatonSwitchoverDAO;
import telraam.database.daos.TeamDAO;
import telraam.database.models.BatonSwitchover;
import telraam.database.models.Team;

import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.MediaType;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.List;
import java.util.Objects;
import java.util.Optional;

import telraam.websocket.WebSocketMessageSingleton;


@Path("/team")
@Tag(name="Team")
Expand Down Expand Up @@ -50,14 +48,6 @@ public int create(Team team) {
));
}

WebSocketMessageSingleton.getInstance().sendToAll(
"new team (%s, %s, %s)".formatted(
team.getName(),
team.getId(),
team.getBatonId()
)
);

return ret;
}

Expand Down

0 comments on commit 5d42686

Please sign in to comment.