fix: réparer la relation commentaire.parole / parole.commentaires
Déploiement API BETA / build (push) Successful in 2m25s
Déploiement API PROD / build (push) Successful in 2m22s
Déploiement API BETA / deploy (push) Successful in 46s
Déploiement API PROD / deploy (push) Successful in 53s

This commit is contained in:
2026-07-05 19:04:39 +04:00
parent fb60226bd4
commit 29bdf72640
3 changed files with 6 additions and 4 deletions
@@ -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"
+1 -1
View File
@@ -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;