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

Feature/#341 분봉 리팩토링 및 장 시간대에 분봉 받아오기, alarm 한번만 작동 #343

Merged
merged 8 commits into from
Dec 3, 2024
Prev Previous commit
🐛 fix: 알람을 한번만 보내고 삭제처리하게 만듦
swkim12345 committed Dec 3, 2024
commit 65ecaaaddf1a50a65b404d217cb7d2ae402cf242
2 changes: 2 additions & 0 deletions packages/backend/src/alarm/alarm.service.ts
Original file line number Diff line number Diff line change
@@ -110,6 +110,8 @@ export class AlarmService {

for (const subscription of subscriptions) {
await this.pushService.sendPushNotification(subscription, payload);
//한번만 보내고 삭제하게 처리.
this.alarmRepository.delete(alarm.id);
}
}
}