mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 00:03:40 +00:00
Fix wrong rebase
This commit is contained in:
parent
da5ca2a125
commit
85eeb4aef2
@ -113,8 +113,8 @@ module.exports = {
|
|||||||
} else {
|
} else {
|
||||||
const model = association.plugin
|
const model = association.plugin
|
||||||
? strapi.plugins[association.plugin].models[
|
? strapi.plugins[association.plugin].models[
|
||||||
association.collection || association.model
|
association.collection || association.model
|
||||||
]
|
]
|
||||||
: strapi.models[association.collection || association.model];
|
: strapi.models[association.collection || association.model];
|
||||||
|
|
||||||
// Generate lookup for this relation
|
// Generate lookup for this relation
|
||||||
|
|||||||
@ -398,11 +398,11 @@ module.exports = {
|
|||||||
queryOpts.skip = convertedParams.start;
|
queryOpts.skip = convertedParams.start;
|
||||||
|
|
||||||
switch (association.nature) {
|
switch (association.nature) {
|
||||||
case 'manyToMany': {
|
case "manyToMany":
|
||||||
const arrayOfIds = (obj[association.alias] || []).map(
|
const arrayOfIds = (obj[association.alias] || []).map(
|
||||||
related => {
|
related => {
|
||||||
return related[ref.primaryKey] || related;
|
return related[ref.primaryKey] || related;
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// Where.
|
// Where.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user