break: update ServerMessage model
- rename MaxSession to TotalSession (and JSON struct tags)
🤖
This commit is contained in:
parent
2ac1aecba1
commit
f183686272
5 changed files with 23 additions and 23 deletions
|
@ -52,10 +52,10 @@ func ResetPomodoro(clients map[*websocket.Conn]*models.Client) {
|
|||
|
||||
// Broadcast the reset message to all clients
|
||||
broadcast.BroadcastMessage(clients, models.ServerMessage{
|
||||
Mode: "none",
|
||||
Session: 0,
|
||||
MaxSession: 0,
|
||||
TimeLeft: 0,
|
||||
Mode: "none",
|
||||
Session: 0,
|
||||
TotalSession: 0,
|
||||
TimeLeft: 0,
|
||||
})
|
||||
|
||||
// Send a reset signal to stop any running timers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue