refactor: sepeare user and auth modules

This commit is contained in:
Abdalhamid Alhamad
2024-12-29 14:17:39 +03:00
parent ebf335eabd
commit ca71632755
29 changed files with 59 additions and 55 deletions

View File

@ -1,7 +1,7 @@
import { forwardRef, Inject, Injectable } from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import { EventEmitter2, OnEvent } from '@nestjs/event-emitter';
import { DeviceService } from '~/auth/services';
import { PageOptionsRequestDto } from '~/core/dtos';
import { DeviceService } from '~/user/services';
import { OTP_BODY, OTP_TITLE } from '../../otp/constants';
import { OtpType } from '../../otp/enums';
import { ISendOtp } from '../../otp/interfaces';
@ -18,7 +18,7 @@ export class NotificationsService {
private readonly notificationRepository: NotificationsRepository,
private readonly twilioService: TwilioService,
private readonly eventEmitter: EventEmitter2,
@Inject(forwardRef(() => DeviceService)) private readonly deviceService: DeviceService,
private readonly deviceService: DeviceService,
) {}
async sendPushNotification(userId: string, title: string, body: string) {