Skip to content

Commit

Permalink
Merge pull request #84 from crab85193/dev_crab
Browse files Browse the repository at this point in the history
fix: 予約処理完了後にユーザーに通知されないバグを修正
  • Loading branch information
crab85193 authored Dec 7, 2023
2 parents 193f0b0 + 0271d18 commit 62d96d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_app/views/twilio.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get(self, request, *args, **kwargs):
url = f"{'{0}://{1}'.format(self.request.scheme, self.request.get_host())}{reverse('main_app:reservation_detail', args=[obj_parent.id])}"

UserNotice.objects.create(
user=self.request.user,
user=obj_parent.user,
title="予約受付が承認しました",
message=f"店舗様が予約受付が承認しました。クリックすると、予約状況確認ページへリダイレクトします。",
type=UserNotice.SUCCESS,
Expand Down Expand Up @@ -145,7 +145,7 @@ def get(self, request, *args, **kwargs):
url = f"{'{0}://{1}'.format(self.request.scheme, self.request.get_host())}{reverse('main_app:reservation_detail', args=[obj_parent.id])}"

UserNotice.objects.create(
user=self.request.user,
user=obj_parent.user,
title="予約受付が承認されませんでした",
message=f"店舗様が予約受付が承認しませんでした。クリックすると、予約状況確認ページへリダイレクトします。",
type=UserNotice.DANGER,
Expand Down

0 comments on commit 62d96d1

Please sign in to comment.