Skip to content

Commit

Permalink
feat(open-data): add soliguide link
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Dec 13, 2023
1 parent bd0ee38 commit 7910580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/backend/src/open-data-places/load-domifa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const loadDomifaData = async () => {
"latitude",
"longitude",
"email",
"structureType",
"id",
],
});
Expand All @@ -51,6 +52,7 @@ export const loadDomifaData = async () => {
domifaStructureId: place.id,
soliguideStructureId: null,
mail: place.email,
structureType: place.structureType,
uniqueId: place.id.toString(),
})
);
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/run-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { domifaConfig } from "./config";
server.setTimeout(1000 * 60 * 5);
appLogger.warn(`[${__filename}] Application listening on port 3000`);

if (domifaConfig().envId === "local") {
if (domifaConfig().envId === "local" && domifaConfig().cron.enable) {
await loadDomifaData();
await loadSoliguideData();
// await loadDataInclusionData("CCAS");
Expand Down

0 comments on commit 7910580

Please sign in to comment.