We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85b438 commit df06707Copy full SHA for df06707
src/api.js
@@ -300,6 +300,8 @@ export class Api {
300
const roomName = computeRedisRoomStreamName(room, docid, this.prefix)
301
const redisLastId = await this.getRedisLastId(room, docid)
302
const lastId = number.parseInt(redisLastId.split('-')[0])
303
+ const roomExists = await this.redis.exists(roomName)
304
+ if (!roomExists) return
305
if (remove) {
306
await this.redis.del(roomName)
307
} else {
0 commit comments