testing commit

This commit is contained in:
Amey Bhagwat 2026-11-12 10:47:55 +05:30
parent a49fa82703
commit 5d088eced2
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +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');