Compare commits

..

9 Commits

Author SHA1 Message Date
1f521dfc41 Merge pull request #98 from Zod-Alkhair/feature/allowance-scheduling-cron-queue
feat(allowance): add dead letter exchange to allowance queue configur…
2026-02-04 15:08:27 +03:00
0640c8b59a Merge pull request #97 from Zod-Alkhair/feature/allowance-scheduling-cron-queue
feat(allowance): enhance logging in allowance queue and worker services
2026-02-04 11:45:45 +03:00
75e0f14bd9 Merge pull request #96 from Zod-Alkhair/feature/allowance-scheduling-cron-queue
feat(allowance): add delete API and configurable test intervals
2026-02-03 12:36:02 +03:00
64a6cc9ddd Merge pull request #95 from Zod-Alkhair/feature/notification-system-fcm-registration
feat: add profile update notification handling for child users
2026-02-01 14:46:49 +03:00
2ab9554c0c feat: add profile update notification handling for child users
- Implemented logic to skip notifications for child users (roles.JUNIOR) when their profiles are updated, preventing unnecessary notifications to both child and parent.
- Enhanced logging to indicate when notifications are skipped for child users.
2026-02-01 14:44:42 +03:00
a7dee2dc1e Merge pull request #94 from Zod-Alkhair/feature/help-support-faq-lookup
fix: update phone number change instructions in help/support FAQs for…
2026-02-01 14:25:29 +03:00
1822f074c6 fix: update phone number change instructions in help/support FAQs for clarity and localization 2026-02-01 14:24:35 +03:00
95d0f0f4b0 Merge pull request #93 from Zod-Alkhair/feature/allowance-scheduling-cron-queue
feat(allowance): add GET and PATCH endpoints for allowance schedules
2026-02-01 13:22:19 +03:00
8d56a8da0f Merge pull request #92 from Zod-Alkhair/feature/allowance-scheduling-cron-queue
feat: add allowance scheduling with cron, queue, and worker
2026-01-28 16:04:56 +03:00
2 changed files with 11 additions and 2 deletions

View File

@ -30,9 +30,9 @@
{
"id": "change_phone_number",
"question_en": "How do I change my phone number?",
"answer_en": "You cannot update your phone number",
"answer_en": "At the moment, phone numbers cant be changed directly in the app. Please contact our support team, and theyll assist you with updating it.",
"question_ar": "كيف أغيّر رقم هاتفي؟",
"answer_ar": "لا يمكنك تحديث رقم هاتفك."
"answer_ar": "حاليًا لا يمكن تغيير أرقام الهواتف مباشرةً داخل التطبيق. يرجى التواصل مع فريق الدعم، وسيساعدونك في تحديثه."
},
{
"id": "activate_card",

View File

@ -1,6 +1,7 @@
import { Injectable, Logger } from '@nestjs/common';
import { OnEvent } from '@nestjs/event-emitter';
import { I18nService } from 'nestjs-i18n';
import { Roles } from '~/auth/enums';
import { NotificationFactory, NotificationPreferences } from '../services/notification-factory.service';
import { UserService } from '~/user/services/user.service';
import { NOTIFICATION_EVENTS } from '../constants/event-names.constant';
@ -24,6 +25,14 @@ export class ProfileNotificationListener {
try {
const { user, updatedFields } = event;
// Do not notify when a child updates their profile (no notification to child or parent)
if (user?.roles?.includes(Roles.JUNIOR)) {
this.logger.log(
`Skipping profile updated notification for child user ${user.id} - no notification sent`
);
return;
}
this.logger.log(
`Processing profile updated notification for user ${user.id} - Updated fields: ${updatedFields.join(', ')}`
);