Skip to content

Commit

Permalink
fix: suppresion du doublon de commande d'import de donnée FT
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasDetre committed Jan 24, 2025
1 parent fa82e1a commit 3cab006
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions server/src/commands.product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,25 +286,6 @@ export function productCommands(cli: Command) {
await createJob({ name: "importFiles", sub: filename });
});

cli
.command("importTensionFranceTravail")
.description("Import des données de tension (national/régional/départemental) depuis France Travail")
.argument("[usecase]")
.action(async (usecaseName: string) => {
const usecases = {
importTensionFranceTravailNational,
importTensionFranceTravailRegion,
importTensionFranceTravailDepartement,
};

if (usecaseName) {
await usecases[usecaseName as keyof typeof usecases]();
} else {
for (const usecase of Object.values(usecases)) {
await usecase();
}
}
});

cli
.command("importTables")
Expand Down

0 comments on commit 3cab006

Please sign in to comment.