fix: make contentful data sync

This commit is contained in:
Sebastian Rindom committed 2021-10-25 18:48:56 +02:00
1 parent 81847456f1
commit 548f6c7138
2 files changed
+29 -8

No files matched your search

@@ -55,6 +55,10 @@ export class ProductRepository extends Repository<Product> {
return []
}
if (relations.length === 0) {
return this.findByIds(entitiesIds, idsOrOptionsWithoutRelations)
}
const groupedRelations: { [toplevel: string]: string[] } = {}
for (const rel of relations) {
const [topLevel] = rel.split(".")