Skip to content

Commit

Permalink
Add websocket safety net
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Oct 10, 2023
1 parent 12cff7a commit d157428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sci-log-db/src/utils/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export async function startWebsocket(app: SciLogDbApplication) {
const doc = await collection.findOne({
_id: Mongo.ObjectId(change.documentKey._id),
});
if (!doc) return;
// console.log(websocketMap[id])
if (typeof websocketMap[id] != 'undefined') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit d157428

Please sign in to comment.