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