Skip to content

Commit

Permalink
Merge branch 'dev' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
seungholee-dev committed Sep 8, 2024
2 parents 42e5fa5 + cb9bb0c commit b216422
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 38 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/dife/api/model/Chat.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dife.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.persistence.*;
import jakarta.validation.constraints.Size;
import java.time.LocalDateTime;
Expand All @@ -16,6 +17,7 @@
@NoArgsConstructor
@AllArgsConstructor
@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
@Table(name = "chat")
public class Chat implements TranslateTable {

Expand Down
20 changes: 13 additions & 7 deletions src/main/java/com/dife/api/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,19 @@ public MemberResponseDto update(

if (password != null) member.setPassword(passwordEncoder.encode(password));

boolean notAddVerificationFile =
(verificationFile == null || verificationFile.isEmpty())
&& member.getUsername().equals("Diver");
if (notAddVerificationFile) throw new MemberNotAddVerificationException();

boolean hasToUploadVerificationFile = verificationFile != null && !verificationFile.isEmpty();
if (hasToUploadVerificationFile) updateFile(member, verificationFile, true);
// TODO: UNCOMMENT THIS AFTER BETA
// boolean notAddVerificationFile =
// (verificationFile == null || verificationFile.isEmpty())
// && member.getUsername().equals("Diver");
// if (notAddVerificationFile) {
// throw new MemberNotAddVerificationException();
// }
// boolean hasToUploadVerificationFile = verificationFile != null &&
// !verificationFile.isEmpty();
// if (hasToUploadVerificationFile) updateFile(member, verificationFile, true);

// TODO: DELETE THIS AFTER BETA
member.setIsVerified(true);

boolean hasToUploadProfile = profileImg != null && !profileImg.isEmpty();
if (hasToUploadProfile) updateFile(member, profileImg, false);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring:

sql:
init:
mode: always
mode: never
data-locations: classpath:import.sql

aws:
Expand Down
17 changes: 17 additions & 0 deletions src/main/resources/db/changelog/v1.0/v1.0.2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,21 @@
constraintName="FK_REPORT_ON_CHATROOM" referencedColumnNames="id"
referencedTableName="chatroom"/>
</changeSet>

<changeSet id="add-type-column-from-member-20240904-2350" author="suyeon">
<addColumn tableName="member">
<column name="setting_language" type="varchar(10)"/>
</addColumn>
</changeSet>

<changeSet id="add-type-column-from-member-20240904-2355" author="suyeon">
<addColumn tableName="member">
<column name="translation_count" type="INT"/>
</addColumn>
</changeSet>
<changeSet id="add-type-column-from-member-20240905-1900" author="suyeon">
<addColumn tableName="member">
<column name="verify_code" type="varchar(10)"/>
</addColumn>
</changeSet>
</databaseChangeLog>
18 changes: 0 additions & 18 deletions src/main/resources/db/changelog/v1.0/v1.0.3.xml

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/resources/db/changelog/v1.0/v1.0.4.xml

This file was deleted.

0 comments on commit b216422

Please sign in to comment.