Skip to content

Commit

Permalink
Merge pull request #483 from sparcs-kaist/dev
Browse files Browse the repository at this point in the history
Main branch update from Dev branch
  • Loading branch information
kmc7468 authored Mar 3, 2024
2 parents 73b875c + a455cda commit fea3b9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lottery/schedules/detectAbusingUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const detectLessChatUsers = async (period, candidateUserIds) => {
if (
period.startAt > room.time ||
period.endAt <= room.time ||
room.part.length < 2 ||
room.settlementTotal === 0
)
return null;
Expand Down
4 changes: 3 additions & 1 deletion src/modules/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ const startSocketServer = (server) => {
try {
const req = socket.request;
req.session.reload((err) => {
if (err) throw err;
if (err) {
return socket.disconnect();
}

const { oid: userOid } = getLoginInfo(req);
if (!userOid) return;
Expand Down

0 comments on commit fea3b9a

Please sign in to comment.