mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 10:05:21 +00:00
changed notification method, added celery task to notify expiring task
This commit is contained in:
@ -21,7 +21,7 @@ from zod_bank.celery import app
|
||||
# notification's constant
|
||||
from notifications.constants import REFERRAL_POINTS
|
||||
# send notification function
|
||||
from notifications.utils import send_notification, send_notification_to_junior
|
||||
from notifications.utils import send_notification
|
||||
|
||||
|
||||
# Define upload image on
|
||||
@ -117,7 +117,7 @@ def update_referral_points(referral_code, referral_code_used):
|
||||
junior_query.total_points = junior_query.total_points + NUMBER['five']
|
||||
junior_query.referral_points = junior_query.referral_points + NUMBER['five']
|
||||
junior_query.save()
|
||||
send_notification_to_junior.delay(REFERRAL_POINTS, None, junior_queryset.auth.id, {})
|
||||
send_notification.delay(REFERRAL_POINTS, None, None, junior_queryset.auth.id, {})
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user