Skip to content

Commit

Permalink
fixed small bug of multiple orders
Browse files Browse the repository at this point in the history
  • Loading branch information
majimearun committed Dec 7, 2022
1 parent b673e10 commit 1c66012
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/ecommerce/gomart/Email/EmailService.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class EmailService {
private JavaMailSender javaMailSender;
private static final BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();

@org.springframework.beans.factory.annotation.Value("oopsecommercewebsite@gmail.com") private String sender;
@org.springframework.beans.factory.annotation.Value("gomart.ecommerce@gmail.com") private String sender;

@Transactional
public ResponseEntity<String> sendSimpleMail(Email email){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ public ResponseEntity<String> removeFromCart(Long userId, Long productId){

}

@Transactional
public ResponseEntity<String> checkOutFromCart(Long userId){
if(checkIfUserLoggedIn(userId)){
GomartUser user = gomartUserRepository.findById(userId).get();
Expand Down

0 comments on commit 1c66012

Please sign in to comment.