Skip to content

Commit 8c8c0d7

Browse files
committed
Finalize the user service
1 parent 2067d04 commit 8c8c0d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/lk/ijse/dep/note/service/impl/UserServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public UserDTO getUserInfo(String userId) throws NotFoundException {
4848
@Override
4949
public void deleteUser(String userId) throws NotFoundException {
5050
if(!userRepository.existById(userId)) throw new NotFoundException("Invalid User id");
51+
userRepository.deleteById(userId);
5152

5253

5354
}

0 commit comments

Comments
 (0)