chore: Bump ioredis for fixes

chore: Remove sequelize language from user-facing db migrations
This commit is contained in:
Tom Moor
2021-03-22 18:41:54 -07:00
parent bb5443452b
commit 9af9d3a008
4 changed files with 42 additions and 25 deletions

View File

@ -1,5 +1,6 @@
// @flow
import http from "http";
import * as Sentry from "@sentry/node";
import IO from "socket.io";
import socketRedisAdapter from "socket.io-redis";
import SocketAuth from "socketio-auth";
@ -111,7 +112,17 @@ SocketAuth(io, {
// let this user know who else is already present in the room
io.in(room).clients(async (err, sockets) => {
if (err) throw err;
if (err) {
if (process.env.SENTRY_DSN) {
Sentry.withScope(function (scope) {
scope.setExtra("clients", sockets);
Sentry.captureException(err);
});
} else {
console.error(err);
}
return;
}
// because a single user can have multiple socket connections we
// need to make sure that only unique userIds are returned. A Map