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