Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxiao27 committed Jan 25, 2025
1 parent a621395 commit 4359028
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 4359028

Please sign in to comment.