mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +00:00
fix: pass dynamic DTO from the base service to the repository constructor
This commit is contained in:
parent
239909e711
commit
849f458f1c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user