fix: update GoTomato model field names
adjust field names due to breaking changes in GoTomato v0.0.4
This commit is contained in:
parent
2430e22756
commit
0f8fde3143
6 changed files with 16 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue