fix: on nested relations discovery use alias of parent relation first (#630)
This commit is contained in:
parent
a1f2f02c89
commit
245127a74b
@ -145,7 +145,7 @@ export async function paginate<T extends ObjectLiteral>(
|
||||
)
|
||||
|
||||
if (typeof relationSchema === 'object') {
|
||||
createQueryBuilderRelations(relationName, relationSchema, `${prefix}_${relationName}`)
|
||||
createQueryBuilderRelations(relationName, relationSchema, `${alias ?? prefix}_${relationName}`)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user