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

View File

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