Skip to content

Commit

Permalink
update book repo
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonfrank committed Jul 19, 2024
1 parent a46170a commit 844d7eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public AuthenticationResponse authenticate(LoginRequest request) {

public AuthenticationResponse registerHandler(RegisterRequest request) {

if (userRepository.existsByEmail(request.getEmail())) {
if (userRepository.findByEmail(request.getEmail()).isPresent()) {

throw new DuplicateUserInfoException("Username or email is already taken");

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE tbl_attendees ADD COLUMN phone_number VARCHAR(255);
-- ALTER TABLE tbl_attendees ADD COLUMN phone_number VARCHAR(255);
4 changes: 2 additions & 2 deletions src/main/resources/db/migration/V3__add_slug_to_eventType.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ALTER TABLE tbl_event_type ADD COLUMN slug VARCHAR(255) DEFAULT 'default_value' NOT NULL UNIQUE;
-- ALTER TABLE tbl_event_type ADD COLUMN slug VARCHAR(255) DEFAULT 'default_value' NOT NULL UNIQUE;

CREATE INDEX slug_index ON tbl_event_type (slug);
-- CREATE INDEX slug_index ON tbl_event_type (slug);

0 comments on commit 844d7eb

Please sign in to comment.