This commit is contained in:
Timothy J. Baek
2024-10-11 00:00:13 -07:00
parent 9658c2559a
commit ba2df1c33a
3 changed files with 55 additions and 23 deletions
+4 -1
View File
@@ -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) => {