diff --git a/RestroHub/src/main/java/com/restroly/qrmenu/auth/controller/AuthController.java b/RestroHub/src/main/java/com/restroly/qrmenu/auth/controller/AuthController.java index 770e077..2000c37 100644 --- a/RestroHub/src/main/java/com/restroly/qrmenu/auth/controller/AuthController.java +++ b/RestroHub/src/main/java/com/restroly/qrmenu/auth/controller/AuthController.java @@ -20,7 +20,7 @@ import com.restroly.qrmenu.auth.service.AuthService; import com.restroly.qrmenu.auth.service.GoogleAuthService; import com.restroly.qrmenu.common.dto.ApiResponse; -import com.restroly.qrmenu.common.exception.ErrorResponse; +import com.restroly.qrmenu.exception.ApiErrorResponse; import com.restroly.qrmenu.exception.ApiErrorResponse; import io.swagger.v3.oas.annotations.Operation; diff --git a/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/AuthServiceImpl.java b/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/AuthServiceImpl.java index 7f4830f..b84736a 100644 --- a/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/AuthServiceImpl.java +++ b/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/AuthServiceImpl.java @@ -19,7 +19,7 @@ import org.springframework.stereotype.Service; import com.restroly.qrmenu.auth.dto.RegisterRequest; import com.restroly.qrmenu.user.entity.User; -import com.restroly.qrmenu.user.exception.DuplicateResourceException; +import com.restroly.qrmenu.exception.DuplicateResourceException; import com.restroly.qrmenu.user.entity.Role; import com.restroly.qrmenu.user.repository.UserRepository; import com.restroly.qrmenu.user.repository.RoleRepository; diff --git a/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/GoogleAuthService.java b/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/GoogleAuthService.java index 693068b..f1f8f45 100644 --- a/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/GoogleAuthService.java +++ b/RestroHub/src/main/java/com/restroly/qrmenu/auth/service/GoogleAuthService.java @@ -56,8 +56,8 @@ public AuthResponse authenticateWithGoogle(GoogleAuthRequest googleAuthRequest) String idToken = googleAuthRequest.getToken(); if (idToken == null || idToken.isBlank()) { - throw new BusinessException("Google token is missing"); -} + throw new BusinessException("Google token is missing"); + } log.info("Google OAuth authentication initiated"); diff --git a/RestroHub/src/main/java/com/restroly/qrmenu/user/entity/User.java b/RestroHub/src/main/java/com/restroly/qrmenu/user/entity/User.java index 236d3e2..1db1c17 100644 --- a/RestroHub/src/main/java/com/restroly/qrmenu/user/entity/User.java +++ b/RestroHub/src/main/java/com/restroly/qrmenu/user/entity/User.java @@ -46,7 +46,7 @@ public class User { private String authProvider; // e.g., "GOOGLE", "LOCAL", "FACEBOOK" (future) - @Column(name = "user_profile", columnDefinition = "bytea") + @Column(name = "user_profile") private byte[] userProfile; // BLOB for storing profile image bytes @ManyToMany