diff --git a/service/index.ts b/service/index.ts index 19e4542..942dba6 100644 --- a/service/index.ts +++ b/service/index.ts @@ -44,9 +44,9 @@ export const fetchConversations = async (limit = 100, last_id = null) => { return get('conversations', { params: { limit, last_id } }) } -export const fetchChatList = async (conversationId: string, limit = 20, last_id = null) => { +export const fetchChatList = async (conversationId: string, limit = 20) => { return get('messages', { - params: { conversation_id: conversationId, limit, last_id } + params: { conversation_id: conversationId, limit} }) }