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