mirror of
https://github.com/hexastack/hexabot
synced 2025-02-24 05:14:47 +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,
|
TFull extends Omit<T, P> = never,
|
||||||
DTO extends DtoProps<any> = unknown,
|
DTO extends DtoProps<any> = unknown,
|
||||||
> {
|
> {
|
||||||
constructor(protected readonly repository: BaseRepository<T, P, TFull>) {}
|
constructor(
|
||||||
|
protected readonly repository: BaseRepository<T, P, TFull, DTO>,
|
||||||
|
) {}
|
||||||
|
|
||||||
getRepository() {
|
getRepository() {
|
||||||
return this.repository;
|
return this.repository;
|
||||||
|
Loading…
Reference in New Issue
Block a user