linting
parent
62efb70542
commit
007b47a1f0
|
|
@ -1,10 +1,16 @@
|
||||||
import * as cacheFunctions from '../../helpers/functions.cache.js';
|
import * as cacheFunctions from '../../helpers/functions.cache.js';
|
||||||
const inGroundBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('In-Ground Grave').burialSiteTypeId;
|
const inGroundBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('In-Ground Grave')
|
||||||
const columbariumBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Columbarium').burialSiteTypeId;
|
?.burialSiteTypeId;
|
||||||
const cremationBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Crematorium').burialSiteTypeId;
|
const columbariumBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Columbarium')
|
||||||
const mausoleumBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Mausoleum').burialSiteTypeId;
|
?.burialSiteTypeId;
|
||||||
const nicheWallBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Niche Wall').burialSiteTypeId;
|
const cremationBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Crematorium')
|
||||||
const urnGardenBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Urn Garden').burialSiteTypeId;
|
?.burialSiteTypeId;
|
||||||
|
const mausoleumBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Mausoleum')
|
||||||
|
?.burialSiteTypeId;
|
||||||
|
const nicheWallBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Niche Wall')
|
||||||
|
?.burialSiteTypeId;
|
||||||
|
const urnGardenBurialSiteTypeId = cacheFunctions.getBurialSiteTypesByBurialSiteType('Urn Garden')
|
||||||
|
?.burialSiteTypeId;
|
||||||
export function getBurialSiteTypeId(cemeteryKey) {
|
export function getBurialSiteTypeId(cemeteryKey) {
|
||||||
switch (cemeteryKey) {
|
switch (cemeteryKey) {
|
||||||
case '00': {
|
case '00': {
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,28 @@
|
||||||
import * as cacheFunctions from '../../helpers/functions.cache.js'
|
import * as cacheFunctions from '../../helpers/functions.cache.js'
|
||||||
|
|
||||||
const inGroundBurialSiteTypeId =
|
const inGroundBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('In-Ground Grave')
|
||||||
'In-Ground Grave'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
|
|
||||||
const columbariumBurialSiteTypeId =
|
const columbariumBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('Columbarium')
|
||||||
'Columbarium'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
const cremationBurialSiteTypeId =
|
const cremationBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('Crematorium')
|
||||||
'Crematorium'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
const mausoleumBurialSiteTypeId =
|
const mausoleumBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('Mausoleum')
|
||||||
'Mausoleum'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
const nicheWallBurialSiteTypeId =
|
const nicheWallBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('Niche Wall')
|
||||||
'Niche Wall'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
const urnGardenBurialSiteTypeId =
|
const urnGardenBurialSiteTypeId =
|
||||||
cacheFunctions.getBurialSiteTypesByBurialSiteType(
|
cacheFunctions.getBurialSiteTypesByBurialSiteType('Urn Garden')
|
||||||
'Urn Garden'
|
?.burialSiteTypeId as number
|
||||||
)!.burialSiteTypeId
|
|
||||||
|
|
||||||
export function getBurialSiteTypeId(cemeteryKey: string): number {
|
export function getBurialSiteTypeId(cemeteryKey: string): number {
|
||||||
switch (cemeteryKey) {
|
switch (cemeteryKey) {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ export function getCommittalTypeIdByKey(committalTypeKey, user) {
|
||||||
const committalType = committalTypes.find((committalType) => committalType.committalTypeKey === committalTypeKey);
|
const committalType = committalTypes.find((committalType) => committalType.committalTypeKey === committalTypeKey);
|
||||||
if (committalType === undefined) {
|
if (committalType === undefined) {
|
||||||
const committalTypeId = addCommittalType({
|
const committalTypeId = addCommittalType({
|
||||||
committalTypeKey,
|
committalType: committalTypeKey,
|
||||||
committalType: committalTypeKey
|
committalTypeKey
|
||||||
}, user);
|
}, user);
|
||||||
committalTypes = getCommittalTypes();
|
committalTypes = getCommittalTypes();
|
||||||
return committalTypeId;
|
return committalTypeId;
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ export function getCommittalTypeIdByKey(
|
||||||
if (committalType === undefined) {
|
if (committalType === undefined) {
|
||||||
const committalTypeId = addCommittalType(
|
const committalTypeId = addCommittalType(
|
||||||
{
|
{
|
||||||
committalTypeKey,
|
committalType: committalTypeKey,
|
||||||
committalType: committalTypeKey
|
committalTypeKey
|
||||||
},
|
},
|
||||||
user
|
user
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ export function getIntermentContainerTypeIdByKey(intermentContainerTypeKey, user
|
||||||
intermentContainerTypeKey);
|
intermentContainerTypeKey);
|
||||||
if (intermentContainerType === undefined) {
|
if (intermentContainerType === undefined) {
|
||||||
const intermentContainerTypeId = addIntermentContainerType({
|
const intermentContainerTypeId = addIntermentContainerType({
|
||||||
intermentContainerTypeKey,
|
intermentContainerType: intermentContainerTypeKey,
|
||||||
intermentContainerType: intermentContainerTypeKey
|
intermentContainerTypeKey
|
||||||
}, user);
|
}, user);
|
||||||
intermentContainerTypes = getIntermentContainerTypes(true);
|
intermentContainerTypes = getIntermentContainerTypes(true);
|
||||||
return intermentContainerTypeId;
|
return intermentContainerTypeId;
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ export function getIntermentContainerTypeIdByKey(
|
||||||
if (intermentContainerType === undefined) {
|
if (intermentContainerType === undefined) {
|
||||||
const intermentContainerTypeId = addIntermentContainerType(
|
const intermentContainerTypeId = addIntermentContainerType(
|
||||||
{
|
{
|
||||||
intermentContainerTypeKey,
|
intermentContainerType: intermentContainerTypeKey,
|
||||||
intermentContainerType: intermentContainerTypeKey
|
intermentContainerTypeKey
|
||||||
},
|
},
|
||||||
user
|
user
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue