move lootbox cooldown to redis because of timezone garbage

This commit is contained in:
2025-11-23 22:35:13 +01:00
parent 55ad3d3b1c
commit d9c9f0c217
3 changed files with 25 additions and 10 deletions

View File

@@ -117,7 +117,8 @@ for (const sub of subs) {
redisSubs.map(async a => await redis.del(`user:${a}:subbed`));
const streamdata = await api.streams.getStreamByUserId(streamerId);
if (streamdata) await redis.set('streamIsLive', '1');
if (streamdata) await redis.set('streamIsLive', '1')
else await redis.del('streamIsLive');
await import("./events");