restore full import

pull/3/head
Dan Gowans 2025-03-18 15:33:49 -04:00
parent 22ba4f367d
commit 478fe4518b
2 changed files with 9 additions and 9 deletions

View File

@ -26,7 +26,7 @@ import { getCemeteryIdByKey } from './data.cemeteries.js';
import { getCommittalTypeIdByKey } from './data.committalTypes.js';
import { getDeathAgePeriod } from './data.deathAgePeriods.js';
import { getFeeIdByFeeDescription } from './data.fees.js';
import { getFuneralHomeIdByKey } from './data.funeralHomes.js';
import { getFuneralHomeIdByKey, initializeFuneralHomes } from './data.funeralHomes.js';
import * as importIds from './data.ids.js';
import { getIntermentContainerTypeIdByKey } from './data.intermentContainerTypes.js';
const user = {
@ -806,12 +806,12 @@ async function importFromWorkOrderCSV() {
console.log(`Started ${new Date().toLocaleString()}`);
console.time('importFromCsv');
// Purge Tables
//purgeTables()
//purgeConfigTables()
purgeTables();
purgeConfigTables();
// Initialize SSM Data
//await initializeFuneralHomes(user)
await initializeFuneralHomes(user);
// Do Imports
//await importFromMasterCSV()
await importFromMasterCSV();
await importFromPrepaidCSV();
await importFromWorkOrderCSV();
console.timeEnd('importFromCsv');

View File

@ -1394,14 +1394,14 @@ console.log(`Started ${new Date().toLocaleString()}`)
console.time('importFromCsv')
// Purge Tables
//purgeTables()
//purgeConfigTables()
purgeTables()
purgeConfigTables()
// Initialize SSM Data
//await initializeFuneralHomes(user)
await initializeFuneralHomes(user)
// Do Imports
//await importFromMasterCSV()
await importFromMasterCSV()
await importFromPrepaidCSV()
await importFromWorkOrderCSV()