chore(utils): Update base repository to infer primary keys and support composite (#6062)

This commit is contained in:
Adrien de Peretti
2024-01-14 17:13:25 +01:00
committed by GitHub
parent 33ff2415ae
commit 72bc52231c
29 changed files with 264 additions and 51 deletions
@@ -8,4 +8,9 @@ export class ApplicationMethodRepository extends DALUtils.mikroOrmBaseRepository
create: CreateApplicationMethodDTO
update: UpdateApplicationMethodDTO
}
>(ApplicationMethod) {}
>(ApplicationMethod) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
}
@@ -11,4 +11,9 @@ export class PromotionRuleValueRepository extends DALUtils.mikroOrmBaseRepositor
create: CreatePromotionRuleValueDTO
update: UpdatePromotionRuleValueDTO
}
>(PromotionRuleValue) {}
>(PromotionRuleValue) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
}
@@ -8,4 +8,9 @@ export class PromotionRuleRepository extends DALUtils.mikroOrmBaseRepositoryFact
create: CreatePromotionRuleDTO
update: UpdatePromotionRuleDTO
}
>(PromotionRule) {}
>(PromotionRule) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
}
@@ -8,4 +8,9 @@ export class PromotionRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: CreatePromotionDTO
Update: UpdatePromotionDTO
}
>(Promotion) {}
>(Promotion) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
}