fix: réparer la relation commentaire.parole / parole.commentaires
This commit is contained in:
@@ -27,8 +27,9 @@
|
|||||||
},
|
},
|
||||||
"parole": {
|
"parole": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "oneToOne",
|
"relation": "manyToOne",
|
||||||
"target": "api::parole.parole"
|
"target": "api::parole.parole",
|
||||||
|
"inversedBy": "commentaires"
|
||||||
},
|
},
|
||||||
"origine": {
|
"origine": {
|
||||||
"type": "enumeration",
|
"type": "enumeration",
|
||||||
|
|||||||
@@ -82,7 +82,8 @@
|
|||||||
"commentaires": {
|
"commentaires": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "oneToMany",
|
"relation": "oneToMany",
|
||||||
"target": "api::commentaire.commentaire"
|
"target": "api::commentaire.commentaire",
|
||||||
|
"mappedBy": "parole"
|
||||||
},
|
},
|
||||||
"prioriteArtistes": {
|
"prioriteArtistes": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
Vendored
+1
-1
@@ -506,7 +506,7 @@ export interface ApiCommentaireCommentaire extends Struct.CollectionTypeSchema {
|
|||||||
origine: Schema.Attribute.Enumeration<['local', 'activitypub']> &
|
origine: Schema.Attribute.Enumeration<['local', 'activitypub']> &
|
||||||
Schema.Attribute.Required &
|
Schema.Attribute.Required &
|
||||||
Schema.Attribute.DefaultTo<'local'>;
|
Schema.Attribute.DefaultTo<'local'>;
|
||||||
parole: Schema.Attribute.Relation<'oneToOne', 'api::parole.parole'>;
|
parole: Schema.Attribute.Relation<'manyToOne', 'api::parole.parole'>;
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
remoteId: Schema.Attribute.String & Schema.Attribute.Unique;
|
remoteId: Schema.Attribute.String & Schema.Attribute.Unique;
|
||||||
remoteUrl: Schema.Attribute.String;
|
remoteUrl: Schema.Attribute.String;
|
||||||
|
|||||||
Reference in New Issue
Block a user