fix: event_push bug
This commit is contained in:
parent
e4ff355853
commit
e3449b9b89
|
@ -202,9 +202,9 @@ def remind_push(remindId: str):
|
|||
|
||||
@shared_task(base=CustomTask)
|
||||
def event_push(eventId: str):
|
||||
event = Event.objects.get(id=eventId)
|
||||
if event.handle_time is None:
|
||||
now = timezone.now()
|
||||
event = Event.objects.get(id=eventId)
|
||||
channel_layer = get_channel_layer()
|
||||
data = {
|
||||
'type': 'event',
|
||||
|
|
Loading…
Reference in New Issue