Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Jul 29, 2024
1 parent b976e87 commit 49886ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public TokenResponse teacherLogin(LoginRequest request) {
}

private TokenResponse loginExistingTeacher(LoginRequest request) {
TeacherEntity teacher = teacherMongoRepository.findFirstByAccountId(request.account_id())
TeacherEntity teacher = teacherMongoRepository.findFirstByAccountId(request.account_id())
.orElseThrow(() -> StudentNotFoundException.EXCEPTION);

if (!passwordEncoder.matches(request.password(), teacher.getPassword())) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.example.whopper.domain.feedback.dto;

import com.example.whopper.domain.feedback.domain.element.FeedbackType;

public record FeedbackRequest(
FeedbackType type,
String content,
String writer_name,
String element_id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.example.whopper.domain.teacher.domain;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Builder;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Document(collection = "teacher_repo")
@AllArgsConstructor
@NoArgsConstructor
public class TeacherEntity {
@Id
private String id;
private String name;
private String accountId;
Expand Down

0 comments on commit 49886ba

Please sign in to comment.