Skip to content

Commit

Permalink
removingg changes on the wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
mflilian committed Apr 6, 2022
1 parent a7b76ae commit 2c0b0f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/histories_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ func HistoriesV2Handler(app *App) func(c echo.Context) error {

for _, topic := range authorizedTopics {
topicMessages := mongoclient.GetMessagesV2(c, topic, from, limit, collection)
for _, message := range topicMessages {
if !message.Blocked {
messages = append(messages, topicMessages...)
}
}
messages = append(messages, topicMessages...)
}
return c.JSON(http.StatusOK, messages)
}
Expand Down

0 comments on commit 2c0b0f3

Please sign in to comment.