mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +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;
|
||||
|
||||
await Service.appearance(formatedAttributes, name);
|
||||
await Service.appearance(formatedAttributes, _.toLower(name));
|
||||
|
||||
const apiName = _.toLower(name);
|
||||
await Service.generateAPI(
|
||||
|
||||
@ -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':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user