mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
fix adjacentRelations query to look for joinColum name
This commit is contained in:
parent
5fad91721b
commit
114d67a9f2
@ -858,6 +858,7 @@ const createEntityManager = (db) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
[joinColumn.name]: id,
|
||||||
[orderColumnName]: this.createQueryBuilder(joinTable.name)
|
[orderColumnName]: this.createQueryBuilder(joinTable.name)
|
||||||
.max(orderColumnName)
|
.max(orderColumnName)
|
||||||
.where({ [joinColumn.name]: id })
|
.where({ [joinColumn.name]: id })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user