diff --git a/backend/src/services/doctorImport.js b/backend/src/services/doctorImport.js index cb2fc5a..6c6d858 100644 --- a/backend/src/services/doctorImport.js +++ b/backend/src/services/doctorImport.js @@ -97,7 +97,7 @@ export function validateDoctors({ headers, rows }) { } /** Import a CSV from files/import/: stops without writing on any problem, otherwise inserts new and updates existing doctors by email. */ -/** Added new 12 Nov 2026 */ + export async function importDoctors(fileName, { connection = db, directory = IMPORT_DIR } = {}) { if (!fileName) { throw new Error('Pass the CSV file name, e.g. npm run import:doctors -- doctors.csv');