Skip to content

Commit

Permalink
fix: Disable version check because version column is not for locking
Browse files Browse the repository at this point in the history
  • Loading branch information
langecode committed Jan 26, 2024
1 parent b6b305a commit 9ba6004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/store/datastore/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (s storage) AgentCreate(agent *model.Agent) error {
}

func (s storage) AgentUpdate(agent *model.Agent) error {
_, err := s.engine.ID(agent.ID).AllCols().Update(agent)
_, err := s.engine.ID(agent.ID).AllCols().NoVersionCheck().Update(agent)
return err
}

Expand Down

0 comments on commit 9ba6004

Please sign in to comment.