mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +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(() => '?')
|
.map(() => '?')
|
||||||
.join(', ')})
|
.join(', ')})
|
||||||
) AS inv_order
|
) AS inv_order
|
||||||
FROM ?? a`,
|
FROM ?? a
|
||||||
|
WHERE a.?? IN (${inverseRelIds.map(() => '?').join(', ')})
|
||||||
|
`,
|
||||||
[
|
[
|
||||||
tempInvOrderTableName,
|
tempInvOrderTableName,
|
||||||
joinTable.name,
|
joinTable.name,
|
||||||
@ -351,6 +353,8 @@ const cleanOrderColumnsForInnoDB = async ({
|
|||||||
inverseJoinColumn.name,
|
inverseJoinColumn.name,
|
||||||
...inverseRelIds,
|
...inverseRelIds,
|
||||||
joinTable.name,
|
joinTable.name,
|
||||||
|
inverseJoinColumn.name,
|
||||||
|
...inverseRelIds,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
.transacting(trx);
|
.transacting(trx);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user