Skip to content

Commit

Permalink
chore: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed Apr 3, 2024
1 parent 7df0af4 commit e5694c2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ interface HasuraReturn {
export async function fetchAgreementMessage(
idcc: string
): Promise<string | undefined> {
console.log("fetchAgreementMessage", idcc);
const HASURA_GRAPHQL_ENDPOINT =
context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql";
const HASURA_GRAPHQL_ENDPOINT_SECRET =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ interface HasuraReturn {
export async function fetchFicheSp(
ficheSpId: string
): Promise<FicheServicePublicDoc> {
console.log("fetchFicheSp", ficheSpId);
const HASURA_GRAPHQL_ENDPOINT =
context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql";
const HASURA_GRAPHQL_ENDPOINT_SECRET =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export async function fetchLinkedContent(
questionIndex: number,
idcc: string
): Promise<LinkedContentLight | undefined> {
console.log("fetchLinkedContent", cdtnId);
const HASURA_GRAPHQL_ENDPOINT =
context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql";
const HASURA_GRAPHQL_ENDPOINT_SECRET =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface HasuraReturn {
export async function fetchMessageBlock(
questionId: string
): Promise<ContributionMessageBlock | undefined> {
console.log("fetchMessageBlock", questionId);
const HASURA_GRAPHQL_ENDPOINT =
context.get("cdtnAdminEndpoint") || "http://localhost:8080/v1/graphql";
const HASURA_GRAPHQL_ENDPOINT_SECRET =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
drop schema "contrib" cascade;
delete FROM public.documents
WHERE source = 'contributions'
AND document ? 'split'
AND is_available = false;
-- delete from contribution.answer_cdtn_references
-- where cdtn_id in (
-- select cdtn_id
-- FROM public.documents
-- WHERE source = 'contributions'
-- AND document ? 'split'
-- AND is_available = false
-- );
-- delete FROM public.documents
-- WHERE source = 'contributions'
-- AND document ? 'split'
-- AND is_available = false;

0 comments on commit e5694c2

Please sign in to comment.