fix: pass dynamic DTO from the base service to the repository constructor

This commit is contained in:
yassinedorbozgithub 2025-01-10 08:11:20 +01:00
parent 239909e711
commit 849f458f1c

View File

@ -25,7 +25,9 @@ export abstract class BaseService<
TFull extends Omit<T, P> = never,
DTO extends DtoProps<any> = unknown,
> {
constructor(protected readonly repository: BaseRepository<T, P, TFull>) {}
constructor(
protected readonly repository: BaseRepository<T, P, TFull, DTO>,
) {}
getRepository() {
return this.repository;