Skip to content

Commit

Permalink
search update
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed Jun 17, 2022
1 parent a4d6229 commit ef243d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/chat_log_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (d *DataBase) GetMessageListNoTime(sourceID string, sessionType, count int,
} else {
condition = "(send_id = ? OR recv_id = ?) AND status <=? And session_type = ? "
}
err = utils.Wrap(d.conn.Where(condition, sourceID, sourceID, constant.MsgStatusSendFailed, sessionType).
err = utils.Wrap(d.conn.Debug().Where(condition, sourceID, sourceID, constant.MsgStatusSendFailed, sessionType).
Order(timeOrder).Offset(0).Limit(count).Find(&messageList).Error, "GetMessageList failed")
for _, v := range messageList {
v1 := v
Expand Down

0 comments on commit ef243d4

Please sign in to comment.