Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed category and language from question #175

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public class Question {
@Enumerated(EnumType.STRING)
@Column(name = "question_category")
private QuestionCategory questionCategory;
@Column(name = "answer_category")
private AnswerCategory answerCategory;
private String language;
@Enumerated(EnumType.STRING)
private QuestionType type;

Expand Down
2 changes: 1 addition & 1 deletion api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
JWT_EXPIRATION_MS=86400000
REFRESH_TOKEN_DURATION_MS=86400000
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=${DATABASE_URL}
spring.datasource.username=${DATABASE_USER}
spring.datasource.password=${DATABASE_PASSWORD}
Expand Down
2 changes: 0 additions & 2 deletions api/src/test/java/lab/en2b/quizapi/game/GameServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ void setUp() {
.id(1L)
.content("What is the capital of France?")
.answers(new ArrayList<>())
.language("en")
.questionCategory(QuestionCategory.GEOGRAPHY)
.answerCategory(AnswerCategory.CAPITAL_CITY)
.type(QuestionType.TEXT)
.build();

Expand Down