From d4280a37964c138ebba5a4281b112241c2ca513a Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Tue, 22 Apr 2025 15:21:21 -0400 Subject: [PATCH] import updates --- temp/legacyImportFromCsv/data.burialSiteTypes.js | 4 ++-- temp/legacyImportFromCsv/data.burialSiteTypes.ts | 6 +++--- temp/legacyImportFromCsv/index.js | 2 +- temp/legacyImportFromCsv/index.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/temp/legacyImportFromCsv/data.burialSiteTypes.js b/temp/legacyImportFromCsv/data.burialSiteTypes.js index 8d008c10..0e33c0f3 100644 --- a/temp/legacyImportFromCsv/data.burialSiteTypes.js +++ b/temp/legacyImportFromCsv/data.burialSiteTypes.js @@ -1,5 +1,5 @@ import * as cacheFunctions from '../../helpers/functions.cache.js'; -const casketBurialSiteTypeId = (await cacheFunctions.getBurialSiteTypesByBurialSiteType('Casket Grave')) +const inGroundBurialSiteTypeId = (await cacheFunctions.getBurialSiteTypesByBurialSiteType('In-Ground Grave')) .burialSiteTypeId; const columbariumBurialSiteTypeId = (await cacheFunctions.getBurialSiteTypesByBurialSiteType('Columbarium')) .burialSiteTypeId; @@ -31,5 +31,5 @@ export function getBurialSiteTypeId(cemeteryKey) { return urnGardenBurialSiteTypeId; } } - return casketBurialSiteTypeId; + return inGroundBurialSiteTypeId; } diff --git a/temp/legacyImportFromCsv/data.burialSiteTypes.ts b/temp/legacyImportFromCsv/data.burialSiteTypes.ts index d20d114f..b78abf8e 100644 --- a/temp/legacyImportFromCsv/data.burialSiteTypes.ts +++ b/temp/legacyImportFromCsv/data.burialSiteTypes.ts @@ -1,7 +1,7 @@ import * as cacheFunctions from '../../helpers/functions.cache.js' -const casketBurialSiteTypeId = - (await cacheFunctions.getBurialSiteTypesByBurialSiteType('Casket Grave'))! +const inGroundBurialSiteTypeId = + (await cacheFunctions.getBurialSiteTypesByBurialSiteType('In-Ground Grave'))! .burialSiteTypeId const columbariumBurialSiteTypeId = @@ -41,5 +41,5 @@ export function getBurialSiteTypeId(cemeteryKey: string): number { } } - return casketBurialSiteTypeId + return inGroundBurialSiteTypeId } \ No newline at end of file diff --git a/temp/legacyImportFromCsv/index.js b/temp/legacyImportFromCsv/index.js index 08bfe57d..513ed429 100644 --- a/temp/legacyImportFromCsv/index.js +++ b/temp/legacyImportFromCsv/index.js @@ -819,7 +819,7 @@ console.log(`Started ${new Date().toLocaleString()}`); console.time('importFromCsv'); // Purge Tables purgeTables(); -purgeConfigTables(); +// purgeConfigTables() // Initialize SSM Data await initializeFuneralHomes(user); // Do Imports diff --git a/temp/legacyImportFromCsv/index.ts b/temp/legacyImportFromCsv/index.ts index e6039ec6..fef761cc 100644 --- a/temp/legacyImportFromCsv/index.ts +++ b/temp/legacyImportFromCsv/index.ts @@ -1429,7 +1429,7 @@ console.time('importFromCsv') // Purge Tables purgeTables() -purgeConfigTables() +// purgeConfigTables() // Initialize SSM Data await initializeFuneralHomes(user)