Skip to content

Commit

Permalink
Arrange l'input pour l'API adresse
Browse files Browse the repository at this point in the history
  • Loading branch information
totakoko committed Feb 13, 2025
1 parent 4440784 commit 8b9e3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/jobs/pro_eligibility_test_jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const chunkSize = 1000;
export async function processProEligibilityTestJob(job: ProEligibilityTestJob, logger: Logger) {
const startTime = Date.now();

const lines = job.data.csvContent.split('\n');
const lines = job.data.csvContent.split('\n').map((line) => `"${line.replace(/"/g, '""')}"`); // escape double quotes
const addresses: APIAdresseResult[] = [];
const chunks = chunk(lines, chunkSize);
for (const chunk of chunks.values()) {
Expand Down

0 comments on commit 8b9e3c3

Please sign in to comment.