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

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-01-14 17:13:25 +01:00
1 parent 33ff2415ae
commit 72bc52231c
29 files changed
+264 -51

No files matched your search

@@ -10,6 +10,11 @@ export class AddressRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: CreateAddressDTO
}
>(Address) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
async update(
data: { address: Address; update: UpdateAddressDTO }[],
context: Context = {}
+5
View File
@@ -10,6 +10,11 @@ export class CartRepository extends DALUtils.mikroOrmBaseRepositoryFactory<
create: CreateCartDTO
}
>(Cart) {
constructor(...args: any[]) {
// @ts-ignore
super(...arguments)
}
async update(
data: { cart: Cart; update: UpdateCartDTO }[],
context: Context = {}