Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added init bal into ban script #44

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented Sep 6, 2023

I. Context
In order to be able to initialized data from a BAL CSV into the BAN DB, this PR aims to add a cli script to read a local BAL CSV file and send it to ID-Fix processing. As a consequence, data is sent to BAN DB through the new BAN-ID APIs.

II. Enhancement
This PR adds the "initBALIntoBAN" cli script. To use it, use the command :

npm run initBALIntoBAN ${pathToBALCsv}
(replace ${pathToBALCsv} by the path of the BAL CSV file to initialized)

example :

npm run initBALIntoBAN ${pathToBALCsv}

Copy link
Contributor

@mmortier mmortier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ajouter import "dotenv/config.js"; dans init-bal-into-ban.ts pour que s'importent bien les variables d'environnement

@antoineludeau antoineludeau force-pushed the antoineludeau/init-bal-into-ban-script branch 2 times, most recently from f972b1f to 0719c09 Compare September 25, 2023 10:38
@antoineludeau antoineludeau force-pushed the antoineludeau/init-bal-into-ban-script branch from 0719c09 to 9b2bd18 Compare September 25, 2023 10:41
@antoineludeau antoineludeau merged commit d8e90c0 into master Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ID-Fix] : Ajout d'un script pour initialiser une BAL dans la BAN en local
2 participants