testing commit
This commit is contained in:
parent
a49fa82703
commit
5d088eced2
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue