This commit is contained in:
Timothy J. Baek committed 2024-10-11 00:00:13 -07:00
1 parent 9658c2559a
commit ba2df1c33a
3 files changed
+55 -23

No files matched your search

+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) => {