fix: update GoTomato model field names

adjust field names due to breaking changes in GoTomato v0.0.4
This commit is contained in:
Sebastian Mark 2024-10-28 07:56:37 +01:00
parent 2430e22756
commit 0f8fde3143
6 changed files with 16 additions and 18 deletions

View file

@ -31,11 +31,11 @@ func SendCmd(conn *websocket.Conn, pwd string, cmd string) {
sendClientCommand(conn, message)
}
func Send_updateSettings(conn *websocket.Conn, pwd string, settings GoTomato.GoTomatoPomodoroConfig) {
func Send_updateSettings(conn *websocket.Conn, pwd string, settings GoTomato.PomodoroConfig) {
message := GoTomato.ClientCommand{
Command: "updateSettings",
Password: pwd,
PomodoroSettings: settings,
Command: "updateSettings",
Password: pwd,
Settings: settings,
}
sendClientCommand(conn, message)