mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 18:36:18 +00:00
added notification for getting points after reading article
This commit is contained in:
@ -17,7 +17,8 @@ IN_PROGRESS_TASK_EXPIRING = 13
|
||||
TOP_JUNIOR = 14
|
||||
|
||||
NEW_ARTICLE_PUBLISHED = 15
|
||||
REMOVE_JUNIOR = 16
|
||||
ARTICLE_REWARD_POINTS = 16
|
||||
REMOVE_JUNIOR = 17
|
||||
|
||||
TEST_NOTIFICATION = 99
|
||||
|
||||
@ -66,7 +67,7 @@ NOTIFICATION_DICT = {
|
||||
# as junior send task for approval
|
||||
TASK_ACTION: {
|
||||
"title": "Task completion approval!",
|
||||
"body": "{from_user} completed her task {task_name}."
|
||||
"body": "{from_user} completed their task {task_name}."
|
||||
},
|
||||
# Juniors will receive notification as soon
|
||||
# as their task is rejected by custodians
|
||||
@ -105,6 +106,11 @@ NOTIFICATION_DICT = {
|
||||
"title": "Time to read!",
|
||||
"body": "A new article has been published."
|
||||
},
|
||||
# Juniors will receive notification when they earn points by reading financial Learning
|
||||
ARTICLE_REWARD_POINTS: {
|
||||
"title": "Article reward points!",
|
||||
"body": "You are rewarded with {points} points for reading article and answering questions. "
|
||||
},
|
||||
# Juniors will receive notification as soon as their custodians remove them from account
|
||||
REMOVE_JUNIOR: {
|
||||
"title": "Disassociate by guardian!",
|
||||
|
Reference in New Issue
Block a user