Skip to content

Commit

Permalink
log remove
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed Apr 29, 2022
1 parent f6ae96f commit fddfa30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/db/chat_log_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (d *DataBase) GetMessageList(sourceID string, sessionType, count int, start
} else {
condition = "(send_id = ? OR recv_id = ?) AND status <=? And session_type = ? And send_time " + timeSymbol + " ?"
}
err = utils.Wrap(d.conn.Debug().Where(condition, sourceID, sourceID, constant.MsgStatusSendFailed, sessionType, startTime).
err = utils.Wrap(d.conn.Where(condition, sourceID, sourceID, constant.MsgStatusSendFailed, sessionType, startTime).
Order(timeOrder).Offset(0).Limit(count).Find(&messageList).Error, "GetMessageList failed")
for _, v := range messageList {
v1 := v
Expand Down Expand Up @@ -341,7 +341,7 @@ func (d *DataBase) UpdateMsgSenderFaceURL(sendID, faceURL string, sType int) err
func (d *DataBase) UpdateMsgSenderFaceURLAndSenderNickname(sendID, faceURL, nickname string, sessionType int) error {
d.mRWMutex.Lock()
defer d.mRWMutex.Unlock()
return utils.Wrap(d.conn.Debug().Model(LocalChatLog{}).Where(
return utils.Wrap(d.conn.Model(LocalChatLog{}).Where(
"send_id = ? and session_type = ?", sendID, sessionType).Updates(
map[string]interface{}{"sender_face_url": faceURL, "sender_nick_name": nickname}).Error, utils.GetSelfFuncName()+" failed")
}
Expand Down

0 comments on commit fddfa30

Please sign in to comment.