mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00

* feat: add cleanup service for 'bugged' conversations (empty/nullish conversationIds) * fix(ArchivedChatsTable): typing and minor styling issues * fix: properly archive conversations * fix: archive convo application crash * chore: remove unused `useEffect` * fix: add basic navigation * chore: typing
13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
const { logger } = require('~/config');
|
|
const { deleteNullOrEmptyConversations } = require('~/models/Conversation');
|
|
const cleanup = async () => {
|
|
try {
|
|
await deleteNullOrEmptyConversations();
|
|
} catch (error) {
|
|
logger.error('[cleanup] Error during app cleanup', error);
|
|
} finally {
|
|
logger.debug('Startup cleanup complete');
|
|
}
|
|
};
|
|
|
|
module.exports = { cleanup };
|