Skip to content

Commit

Permalink
fix: 修复对接飞书审批失败
Browse files Browse the repository at this point in the history
  • Loading branch information
littleniannian committed Oct 29, 2024
1 parent f2d33a5 commit 5d1c0db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqle/model/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ func (s *Storage) GetAllIMConfig() ([]IM, error) {
}

func (s *Storage) UpdateImConfigById(id uint, m map[string]interface{}) error {
err := s.db.Model(&IM{}).Where("id = ?", id).Updates(m).Error
// 这里使用UpdateColumns可以不触发hook
err := s.db.Model(&IM{}).Where("id = ?", id).UpdateColumns(m).Error
if err != nil {
return errors.New(errors.ConnectStorageError, err)
}
Expand Down

0 comments on commit 5d1c0db

Please sign in to comment.