Skip to content

Commit d3cf1f5

Browse files
committed
feat: enable user subscription status upon activation
1 parent adf5e81 commit d3cf1f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/main/java/com/grash/service/UserService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ public User enableUser(User user) {
330330
throw new CustomException("You can't add more users to this company", HttpStatus.NOT_ACCEPTABLE);
331331
}
332332
user.setEnabled(true);
333+
user.setEnabledInSubscription(true);
333334
userRepository.save(user);
334335
cacheService.putUserInCache(user);
335336
return user;

0 commit comments

Comments
 (0)