fix: make contentful data sync
This commit is contained in:
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(".")
|
||||
|
||||
Reference in new issue
Block a user