Skip to content
Snippets Groups Projects
Commit a97d4fa4 authored by syuilo's avatar syuilo
Browse files

fix(reversi): wait redis operation to improve stability

parent 908e0f3b
No related branches found
No related tags found
10 merge requests!449release 2024.3.1,!448Release 2023.3.1 - Codename #NotDeadYet,!34Merge Beta3,!35fix: admin css,!36Fix Like button not working on renotes/boosts,!37merge develope,!57Merge Latest Changes,!62fix: background overlaying,!682023.9.1.beta5,!112update develop with stable changes
......@@ -128,7 +128,7 @@ export class ReversiService implements OnApplicationShutdown, OnModuleInit {
const redisPipeline = this.redisClient.pipeline();
redisPipeline.zadd(`reversi:matchSpecific:${targetUser.id}`, Date.now(), me.id);
redisPipeline.expire(`reversi:matchSpecific:${targetUser.id}`, 120, 'NX');
redisPipeline.exec();
await redisPipeline.exec();
this.globalEventService.publishReversiStream(targetUser.id, 'invited', {
user: await this.userEntityService.pack(me, targetUser),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment