fix: openapi message list limit default (#803)
This commit is contained in:
@@ -53,6 +53,10 @@ func (m *OpenapiMessageApplication) GetApiMessageList(ctx context.Context, mr *m
|
|||||||
return nil, errorx.New(errno.ErrConversationPermissionCode, errorx.KV("msg", "permission denied"))
|
return nil, errorx.New(errno.ErrConversationPermissionCode, errorx.KV("msg", "permission denied"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if mr.Limit == nil {
|
||||||
|
mr.Limit = ptr.Of(int64(50))
|
||||||
|
}
|
||||||
|
|
||||||
msgListMeta := &entity.ListMeta{
|
msgListMeta := &entity.ListMeta{
|
||||||
ConversationID: currentConversation.ID,
|
ConversationID: currentConversation.ID,
|
||||||
AgentID: currentConversation.AgentID,
|
AgentID: currentConversation.AgentID,
|
||||||
|
|||||||
Reference in New Issue
Block a user