Skip to content

Commit

Permalink
Fix cannot save guest vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed May 4, 2024
1 parent 577a50e commit 64e4548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/http_session_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func updateSessionHandler(w http.ResponseWriter, r *http.Request) {
return
}

if txn := db.Instance.Table("sessions").Where("id = ?", id).Updates(&session); txn.Error != nil {
// https://github.com/evcc-io/evcc/issues/13738#issuecomment-2094070362
if txn := db.Instance.Table("sessions").Where("id = ?", id).Select("vehicle").Updates(&session); txn.Error != nil {
jsonError(w, http.StatusBadRequest, txn.Error)
return
}
Expand Down

0 comments on commit 64e4548

Please sign in to comment.