mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
better filtering in inverse order column
This commit is contained in:
parent
8ec567ef9f
commit
dd98293a55
@ -340,7 +340,9 @@ const cleanOrderColumnsForInnoDB = async ({
|
||||
.map(() => '?')
|
||||
.join(', ')})
|
||||
) AS inv_order
|
||||
FROM ?? a`,
|
||||
FROM ?? a
|
||||
WHERE a.?? IN (${inverseRelIds.map(() => '?').join(', ')})
|
||||
`,
|
||||
[
|
||||
tempInvOrderTableName,
|
||||
joinTable.name,
|
||||
@ -351,6 +353,8 @@ const cleanOrderColumnsForInnoDB = async ({
|
||||
inverseJoinColumn.name,
|
||||
...inverseRelIds,
|
||||
joinTable.name,
|
||||
inverseJoinColumn.name,
|
||||
...inverseRelIds,
|
||||
]
|
||||
)
|
||||
.transacting(trx);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user