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

[DPMBE-125] 인터렉션 발송 시 앱 알람이 꺼져있을때 푸시알림만 안보내도록 한다. #207

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

kdomo
Copy link
Member

@kdomo kdomo commented Jul 17, 2023

개요

작업사항

  • 인터렉션 발송 시 해당 유저의 앱 알림이 false일때 return 시켜 notification 테이블에 데이터가 적재 안되는 문제를 해결하였습니다.

변경로직

  • 내용을 적어주세요.

@kdomo kdomo self-assigned this Jul 17, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@BlackBean99 BlackBean99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +47 to +54
if (targetUser.fcmNotification.appAlarm) {
fcmService.sendMessageAsync(
targetUser.fcmNotification.fcmToken,
"이모지 투척!",
"from. $user.nickname",
data,
)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 변수가 많아서 한줄씩 쓸 경우에 named Argument 를 사용하는게 저는 가독성이 더 좋다고 생각해여!
변수가 추가될 경우에 , 특히 순서가 바뀔 경우에도 에러가 안나거든요
https://mparchive.tistory.com/194 참고

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kdomo kdomo merged commit 81fa86c into develop Jul 19, 2023
3 checks passed
@kdomo kdomo deleted the feature/DPMBE-125 branch July 19, 2023 03:34
kdomo added a commit that referenced this pull request Jul 19, 2023
* fix: RedisMessageListener에 key prefix값 replace 적용

* fix: 앱 알림 허용한 유저가 있을때만 fcm message 보내도록 조건 추가

* fix: PromiseActive시 Redis로 저장되는 Key값 변경

* feat: 인터렉션 발송 시 앱 알람이 꺼져있을때 푸시알림만 안보내도록 한다. (#207)

* [DPMBE-123] 트래킹 시작 시 해당 약속에 참여한 사람이 없다면 트래킹을 시작하지 않는다. (#208)

* feat: 트래킹 시작 시 해당 약속에 참여한 사람이 없다면 트래킹을 시작하지 않는다.

* feat: 트래킹 시작 시 약속 유저가 2명 이하라면 약속을 종료 처리시킨다

* fix: 약속 참여유저 2 미만 이벤트 삭제 시 람다식으로 변경

* [DPMBE-116] 자신의 알림을 조회한다 (#211)

* fix: 인터렉션 타입에 Enumerated String을 사용하도록 변경

* feat: 자신의 알림을 조회한다

* fix: Default Argument에서 Named Argument로 변경

* style: 주석제거
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DPMBE-125] 인터렉션 발송 시 앱 알람이 꺼져있을때 푸시알림만 안보내도록 한다.
3 participants