mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Handle content-type-builder relation when creating a manyWay
This commit is contained in:
parent
343648988c
commit
1e04894262
@ -91,7 +91,7 @@ module.exports = {
|
|||||||
|
|
||||||
strapi.reload.isWatching = false;
|
strapi.reload.isWatching = false;
|
||||||
|
|
||||||
await Service.appearance(formatedAttributes, name);
|
await Service.appearance(formatedAttributes, _.toLower(name));
|
||||||
|
|
||||||
const apiName = _.toLower(name);
|
const apiName = _.toLower(name);
|
||||||
await Service.generateAPI(
|
await Service.generateAPI(
|
||||||
|
|||||||
@ -453,6 +453,7 @@ module.exports = {
|
|||||||
case 'manyToOne':
|
case 'manyToOne':
|
||||||
attr.model = relation.target;
|
attr.model = relation.target;
|
||||||
break;
|
break;
|
||||||
|
case 'manyWay':
|
||||||
case 'manyToMany':
|
case 'manyToMany':
|
||||||
case 'oneToMany':
|
case 'oneToMany':
|
||||||
attr.collection = relation.target;
|
attr.collection = relation.target;
|
||||||
@ -599,6 +600,7 @@ module.exports = {
|
|||||||
const attr = {};
|
const attr = {};
|
||||||
|
|
||||||
switch (params.nature) {
|
switch (params.nature) {
|
||||||
|
case 'manyWay':
|
||||||
case 'oneWay':
|
case 'oneWay':
|
||||||
return;
|
return;
|
||||||
case 'oneToOne':
|
case 'oneToOne':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user