Handle content-type-builder relation when creating a manyWay

This commit is contained in:
Alexandre Bodin 2019-07-08 11:40:43 +02:00
parent 343648988c
commit 1e04894262
2 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ module.exports = {
strapi.reload.isWatching = false;
await Service.appearance(formatedAttributes, name);
await Service.appearance(formatedAttributes, _.toLower(name));
const apiName = _.toLower(name);
await Service.generateAPI(

View File

@ -453,6 +453,7 @@ module.exports = {
case 'manyToOne':
attr.model = relation.target;
break;
case 'manyWay':
case 'manyToMany':
case 'oneToMany':
attr.collection = relation.target;
@ -599,6 +600,7 @@ module.exports = {
const attr = {};
switch (params.nature) {
case 'manyWay':
case 'oneWay':
return;
case 'oneToOne':