Skip to content

Commit

Permalink
✨ feat: set delete ids to context (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwnmengjing authored Aug 10, 2024
1 parent 4a74e60 commit 2ea7f0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/response/actions/gorm/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (e *Delete) delete(c *gin.Context, ids ...string) {
return
}
}
c.Set("ids", ids)
query := gormdb.DB.WithContext(c).
Where(fmt.Sprintf("%s IN ?", e.opts.Key), ids)
if e.opts.Scope != nil {
Expand Down

0 comments on commit 2ea7f0e

Please sign in to comment.