-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 회원가입 시 강제 구독 삭제 * fix: 모든 회원이 아닌 device 토큰이 존재하는 회원만 추가하도록 변경 * chore: 미사용 코드 삭제 * chore: 개행추가
- Loading branch information
1 parent
46802a9
commit 9e81d6d
Showing
4 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/java/in/koreatech/koin/domain/student/model/StudentRegisterEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
package in.koreatech.koin.domain.student.model; | ||
|
||
public record StudentRegisterEvent( | ||
String email, | ||
Integer studentId | ||
String email | ||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/resources/db/migration/V92__delete_notification_subscribe_review_prompt.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DELETE FROM notification_subscribe | ||
WHERE subscribe_type = 'REVIEW_PROMPT'; | ||
|
||
INSERT INTO notification_subscribe (created_at, updated_at, subscribe_type, user_id) | ||
SELECT NOW(), NOW(), 'REVIEW_PROMPT', s.user_id | ||
FROM students s | ||
JOIN users u ON s.user_id = u.id | ||
WHERE u.device_token IS NOT NULL; |