Contents only have one folder now

This commit is contained in:
DrMint 2022-08-13 13:39:26 +02:00
parent 81584f6ff7
commit 120e162b36
2 changed files with 5 additions and 5 deletions

View File

@ -53,11 +53,11 @@
"target": "api::chronicle.chronicle", "target": "api::chronicle.chronicle",
"mappedBy": "contents" "mappedBy": "contents"
}, },
"folders": { "folder": {
"type": "relation", "type": "relation",
"relation": "manyToMany", "relation": "manyToOne",
"target": "api::contents-folder.contents-folder", "target": "api::contents-folder.contents-folder",
"mappedBy": "contents" "inversedBy": "contents"
} }
} }
} }

View File

@ -38,9 +38,9 @@
}, },
"contents": { "contents": {
"type": "relation", "type": "relation",
"relation": "manyToMany", "relation": "oneToMany",
"target": "api::content.content", "target": "api::content.content",
"inversedBy": "folders" "mappedBy": "folder"
}, },
"sequence": { "sequence": {
"type": "boolean", "type": "boolean",