Skip to content

Commit

Permalink
Merge pull request #451 from ubc-biztech/fix-master
Browse files Browse the repository at this point in the history
Fix master
  • Loading branch information
voctory authored Jan 25, 2025
2 parents 0ce8b9a + 4359028 commit 4717de3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions services/interactions/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ export const handleConnection = async (userID, connID, timestamp) => {
});
}

let profileID =
connProfileData.type === PARTNER
? connProfileData.email
: connProfileData.registrationID;
let profileID = connProfileData.email
? connProfileData.email
: connProfileData.registrationID;

console.log(profileID);

let connData = await db.getOne(profileID, PROFILES_TABLE, {
"eventID;year": CURRENT_EVENT
});

console.log(connData);

if (await isDuplicateRequest(userData.id, connID)) {
return handlerHelpers.createResponse(400, {
message: "Connection has already been made"
Expand Down

0 comments on commit 4717de3

Please sign in to comment.