修改获取消息
This commit is contained in:
parent
3433a964b0
commit
1f4dae7a7c
|
|
@ -78,7 +78,7 @@ func FindMessageBySessionID(sessionID, userID int) (error, []dao.Message) {
|
||||||
if session.UserID != userID {
|
if session.UserID != userID {
|
||||||
return errors.New("session not belong to user"), nil
|
return errors.New("session not belong to user"), nil
|
||||||
}
|
}
|
||||||
msgs := dao.FindMessageBySessionID(sessionID)
|
msgs := dao.FindMessageBySessionIDV2(sessionID)
|
||||||
return nil, msgs
|
return nil, msgs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue