Skip to content

Commit

Permalink
fix: clear cache on sort
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 12, 2023
1 parent 547bde8 commit e03fdcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/socket.io/modules.js
Expand Up @@ -125,6 +125,7 @@ SocketModules.chats.sortPublicRooms = async function (socket, data) {
throw new Error('[[error:no-privileges]]');
}
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) {
Expand Down

0 comments on commit e03fdcd

Please sign in to comment.