Skip to content

Commit

Permalink
Merge pull request #42 from QRTaxi/hjNewPush
Browse files Browse the repository at this point in the history
fix: Created 모델 시그널일 때 send_push_notification 무시 추가
  • Loading branch information
leehjhjhj authored Aug 16, 2023
2 parents ba292cb + 24fc6d9 commit 122059c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion call/models/assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def make_call_group_name(assign_pk=None):

def call__on_post_save(instance: Assign, created: bool, **kwargs):
websocket_message(instance, created)
send_push_notification(instance)
if not created:
send_push_notification(instance)

post_save.connect(
call__on_post_save,
Expand Down

0 comments on commit 122059c

Please sign in to comment.