Reverted test commit
This commit is contained in:
parent
5d088eced2
commit
4b23bf0f9d
|
|
@ -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. */
|
/** 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 } = {}) {
|
export async function importDoctors(fileName, { connection = db, directory = IMPORT_DIR } = {}) {
|
||||||
if (!fileName) {
|
if (!fileName) {
|
||||||
throw new Error('Pass the CSV file name, e.g. npm run import:doctors -- doctors.csv');
|
throw new Error('Pass the CSV file name, e.g. npm run import:doctors -- doctors.csv');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue