Skip to content

Commit

Permalink
fix: remove tmp logs (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier authored Sep 12, 2024
1 parent 1fa7c04 commit c5492de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/data-inclusion/cli/action/data-inclusion.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const fetchFromDataInclusionApi = async <T>({ key, url }: Api): Promise<T[]> =>
export const dataInclusionAction = async (dataInclusionOptions: DataInclusionOptions): Promise<void> => {
const responseStructures: SchemaStructureDataInclusion[] = await fetchFromDataInclusionApi({
key: dataInclusionOptions.dataInclusionApiKey,
url: 'https://api.data.inclusion.beta.gouv.fr/api/v0/structures?source=dora'
url: 'https://api.data.inclusion.beta.gouv.fr/api/v0/structures?sources=dora'
});

const responseServices: SchemaServiceDataInclusion[] = await fetchFromDataInclusionApi({
key: dataInclusionOptions.dataInclusionApiKey,
url: 'https://api.data.inclusion.beta.gouv.fr/api/v0/services?source=dora'
url: 'https://api.data.inclusion.beta.gouv.fr/api/v0/services?sources=dora'
});

fs.writeFileSync(
Expand Down
3 changes: 0 additions & 3 deletions src/transformer/cli/action/transformer.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export const transformerAction = async (transformerOptions: TransformerOptions):
const sourceHash: string = createHash('sha256').update(source).digest('hex');

if (previousSourceHash === sourceHash) {
console.log('sourceName', transformerOptions.sourceName);
console.log('previousSourceHash', previousSourceHash);
console.log('sourceHash', sourceHash);
console.log("2. Il n'y a pas de différence par rapport à la transformation précédente");
return;
}
Expand Down

0 comments on commit c5492de

Please sign in to comment.