Skip to content

Commit

Permalink
fix(contributions): correction des contributions avec une fiche SP (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot authored Nov 5, 2024
1 parent aa063c8 commit 908d73c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ query getContribsWithSp($ficheSpIds: [String!]) {
order
seo_title
}
content_fiche_sp: document {
content_fiche_sp: document_fiche_sp {
initial_id
document
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ query contribution_answer($id: uuid) {
slug
}
}
contentFichesSpDocument: document {
contentFichesSpDocument: document_fiche_sp {
cdtnId: cdtn_id
title
source
Expand Down
4 changes: 2 additions & 2 deletions targets/frontend/src/modules/contribution/api/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getContributionAnswerById = gql`
cdtn_references {
cdtn_id
}
content_fiche_sp: document {
content_fiche_sp: document_fiche_sp {
initial_id
document
}
Expand All @@ -70,7 +70,7 @@ export const getGenericAnswerByQuestionId = gql`
order
seo_title
}
content_fiche_sp: document {
content_fiche_sp: document_fiche_sp {
initial_id
document
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ object_relationships:
- name: document
using:
foreign_key_constraint_on: cdtn_id
- name: document_fiche_sp
using:
foreign_key_constraint_on: content_service_public_cdtn_id
- name: question
using:
foreign_key_constraint_on: question_id
Expand Down

0 comments on commit 908d73c

Please sign in to comment.