Skip to content

Commit

Permalink
Merge pull request #83 from CS196Illinois/thing
Browse files Browse the repository at this point in the history
Thing
  • Loading branch information
yangr0 authored Dec 8, 2024
2 parents 7bca55c + aafff9e commit 34c79aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public ResponseEntity<UserOutput> nextUser(@RequestBody JsonObject token) {
PostgreSQLController pgController = new PostgreSQLController();
String sessionToken = token.get("session_token").getAsString();
String discordId = pgController.getDiscordId(sessionToken);
pgController.resetSeen(discordId);
if (pgController.hasUserBeenCreated(discordId)) {
try {
Matching matching = new Matching(sessionToken);
matching.newFillMatchList();
List<User> matchList = matching.getMatchList();
if (matchList.isEmpty()) {
pgController.resetSeen(discordId);
matching.newFillMatchList();
matchList = matching.getMatchList();
if (matchList.isEmpty()) {
Expand Down
11 changes: 9 additions & 2 deletions Project/frontend/app/matching/components/SwipeProfiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,16 @@ const SwipeProfiles: React.FC<SwipeProfilesProps> = ({profiles, filters}) => {
onMouseDown={handleMouseDown}
>
<ProfileCard
{...profile}
name={profile.name}
age={profile.age}
image={profile.image}
bio={profile.bio}
pronouns={profile.pronouns}
riotId={profile.riotId}
discordId={profile.discordId}
description={profile.description}
roles={profile.roles}
rank={profile.rank}
description=""
/>
</div>
);
Expand Down

0 comments on commit 34c79aa

Please sign in to comment.