fix(api): make optional DI required

This commit is contained in:
yassinedorbozgithub
2025-06-19 08:43:16 +01:00
parent 1c8bcf6b0d
commit a4033991c1
9 changed files with 83 additions and 113 deletions

View File

@@ -8,7 +8,7 @@
import { Readable, Stream } from 'stream';
import { Injectable, Optional, StreamableFile } from '@nestjs/common';
import { Injectable, StreamableFile } from '@nestjs/common';
import { HelperService } from '@/helper/helper.service';
import { HelperType } from '@/helper/types';
@@ -22,7 +22,7 @@ import { Attachment } from '../schemas/attachment.schema';
export class AttachmentService extends BaseService<Attachment> {
constructor(
readonly repository: AttachmentRepository,
@Optional() private readonly helperService: HelperService,
private readonly helperService: HelperService,
) {
super(repository);
}