-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69f123c
commit 9feb5f9
Showing
4 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -434,7 +434,7 @@ public ResponseEntity<String> findMultipleByPhoneNumberOrEmail(UserLookupModel u | |
return ResponseEntity.ok(usersJson); | ||
} | ||
|
||
public ResponseEntity<Object> search(String searchTerm, String userId) { | ||
public ResponseEntity<String> search(String searchTerm, String userId) throws JsonProcessingException { | ||
User user = findSingleUserByIdInCacheOrDatabase(userId); | ||
|
||
if (user == null) { | ||
|
@@ -472,7 +472,9 @@ public ResponseEntity<Object> search(String searchTerm, String userId) { | |
users.remove(user); | ||
users.removeIf(u -> u.getEmail().equals("[email protected]")); | ||
updateSingleUserInCacheAndDatabase(user); | ||
return ResponseEntity.ok(users); | ||
|
||
String usersJson = mapper.writeValueAsString(users); | ||
return ResponseEntity.ok(usersJson); | ||
} | ||
|
||
public ResponseEntity<String> findById(String id) throws JsonProcessingException { | ||
|