Skip to content

Commit

Permalink
fix:spell
Browse files Browse the repository at this point in the history
  • Loading branch information
taolx0 committed Sep 7, 2023
1 parent 464f36d commit 091be2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion spelling_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,4 +426,6 @@ Tjwvz046g
slowlogs
tjwvz
ejwvz
wiru
wiru
larkapproval
ccer
2 changes: 1 addition & 1 deletion sqle/model/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ func (s *Storage) GetDingTalkInstanceListByWorkflowIDs(workflowIds []uint) ([]Di
}

// batch updates ding_talk_instances'status into input status by workflow_ids, the status should be like ApproveStatusXXX in model package.
func (s *Storage) BatchUptateStatusOfDingTalkInstance(workflowIds []uint, status string) error {
func (s *Storage) BatchUpdateStatusOfDingTalkInstance(workflowIds []uint, status string) error {
err := s.db.Model(&DingTalkInstance{}).Where("workflow_id IN (?)", workflowIds).Updates(map[string]interface{}{"status": status}).Error
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion sqle/pkg/im/im.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func BatchCancelApprove(workflowIds []uint, user *model.User) {
}

// batch update ding_talk_instances'status into canceled
err = s.BatchUptateStatusOfDingTalkInstance(workflowIds, model.ApproveStatusCancel)
err = s.BatchUpdateStatusOfDingTalkInstance(workflowIds, model.ApproveStatusCancel)
if err != nil {
newLog.Errorf("batch update ding_talk_instances'status into canceled, error: %v", err)
return
Expand Down

0 comments on commit 091be2c

Please sign in to comment.