refac
This commit is contained in:
1 parent
9658c2559a
commit
ba2df1c33a
3 files changed
+55
-23
No files matched your search
@@ -199,7 +199,10 @@ export const getChatListBySearchText = async (token: string, text: string, page:
|
||||
throw error;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res.map((chat) => ({
|
||||
...chat,
|
||||
time_range: getTimeRange(chat.updated_at)
|
||||
}));
|
||||
};
|
||||
|
||||
export const getAllArchivedChats = async (token: string) => {
|
||||
|
||||
Reference in new issue
Block a user