mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
refactor: sepeare user and auth modules
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { BadRequestException, forwardRef, Inject, Injectable } from '@nestjs/common';
|
||||
import { User } from '~/auth/entities';
|
||||
import { DeviceService } from '~/auth/services';
|
||||
import { BadRequestException, Injectable } from '@nestjs/common';
|
||||
import { OciService } from '~/document/services';
|
||||
import { User } from '~/user/entities';
|
||||
import { DeviceService } from '~/user/services';
|
||||
import { UpdateCustomerRequestDto, UpdateNotificationsSettingsRequestDto } from '../dtos/request';
|
||||
import { Customer } from '../entities';
|
||||
import { CustomerRepository } from '../repositories/customer.repository';
|
||||
@ -11,7 +11,7 @@ export class CustomerService {
|
||||
constructor(
|
||||
private readonly customerRepository: CustomerRepository,
|
||||
private readonly ociService: OciService,
|
||||
@Inject(forwardRef(() => DeviceService)) private readonly deviceService: DeviceService,
|
||||
private readonly deviceService: DeviceService,
|
||||
) {}
|
||||
async updateNotificationSettings(userId: string, data: UpdateNotificationsSettingsRequestDto, deviceId: string) {
|
||||
const customer = await this.findCustomerById(userId);
|
||||
|
Reference in New Issue
Block a user