mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Fix conflict
This commit is contained in:
commit
b541e6cc4f
@ -36,7 +36,7 @@ module.exports = {
|
||||
} catch (e) {
|
||||
// Collection undefined try to get the collection based on collectionIdentity
|
||||
if (typeof strapi !== 'undefined') {
|
||||
collection = _.get(strapi.bookshelf.collections, collectionIdentity);
|
||||
collection = _.get(strapi, `bookshelf.collections.${collectionIdentity}`);
|
||||
}
|
||||
|
||||
// Impossible to match collectionIdentity before, try to use idAttribute
|
||||
|
||||
@ -211,6 +211,7 @@ module.exports = {
|
||||
switch (association.nature) {
|
||||
case 'oneToOne':
|
||||
case 'oneToMany':
|
||||
case 'manyToOne':
|
||||
return module.exports.update.call(this, params);
|
||||
case 'manyToMany':
|
||||
return this.forge({
|
||||
@ -233,6 +234,7 @@ module.exports = {
|
||||
switch (association.nature) {
|
||||
case 'oneToOne':
|
||||
case 'oneToMany':
|
||||
case 'manyToOne':
|
||||
return module.exports.update.call(this, params);
|
||||
case 'manyToMany':
|
||||
return this.forge({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user