fix: clear cache on sort

This commit is contained in:
Barış Soner Uşaklı
2023-07-12 16:49:55 -04:00
parent 547bde8939
commit e03fdcd6fc

View File

@@ -125,6 +125,7 @@ SocketModules.chats.sortPublicRooms = async function (socket, data) {
throw new Error('[[error:no-privileges]]'); throw new Error('[[error:no-privileges]]');
} }
await db.sortedSetAdd(`chat:rooms:public:order`, data.scores, data.roomIds); await db.sortedSetAdd(`chat:rooms:public:order`, data.scores, data.roomIds);
require('../cache').del(`chat:rooms:public:order:all`);
}; };
SocketModules.chats.searchMembers = async function (socket, data) { SocketModules.chats.searchMembers = async function (socket, data) {