mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +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)
|
||||
.max(orderColumnName)
|
||||
.where({ [joinColumn.name]: id })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user