Skip to content

Commit

Permalink
Merge pull request #191 from fusic/fix_delete_check
Browse files Browse the repository at this point in the history
Fix delete check of DeleteMessageBatch
  • Loading branch information
p4tin authored Sep 26, 2019
2 parents eb6bd49 + 346c749 commit 292b816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gosqs/gosqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func DeleteMessageBatch(w http.ResponseWriter, req *http.Request) {

notFoundEntries := make([]app.BatchResultErrorEntry, 0)
for _, deleteEntry := range deleteEntries {
if deleteEntry.Deleted == false {
if deleteEntry.Deleted {
notFoundEntries = append(notFoundEntries, app.BatchResultErrorEntry{
Code: "1",
Id: deleteEntry.Id,
Expand Down

0 comments on commit 292b816

Please sign in to comment.