linting
parent
78cae2f964
commit
f440a35df7
|
|
@ -30,7 +30,7 @@ export async function getBurialSiteByBurialSiteName(burialSiteName) {
|
||||||
return await _getBurialSite(`${baseSQL} and l.burialSiteName = ?`, burialSiteName);
|
return await _getBurialSite(`${baseSQL} and l.burialSiteName = ?`, burialSiteName);
|
||||||
}
|
}
|
||||||
async function _getBurialSite(sql, burialSiteIdOrLotName) {
|
async function _getBurialSite(sql, burialSiteIdOrLotName) {
|
||||||
const database = sqlite(sunriseDB);
|
const database = sqlite(sunriseDB, { readonly: true });
|
||||||
const burialSite = database.prepare(sql).get(burialSiteIdOrLotName);
|
const burialSite = database.prepare(sql).get(burialSiteIdOrLotName);
|
||||||
if (burialSite !== undefined) {
|
if (burialSite !== undefined) {
|
||||||
const contracts = await getContracts({
|
const contracts = await getContracts({
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ async function _getBurialSite(
|
||||||
sql: string,
|
sql: string,
|
||||||
burialSiteIdOrLotName: number | string
|
burialSiteIdOrLotName: number | string
|
||||||
): Promise<BurialSite | undefined> {
|
): Promise<BurialSite | undefined> {
|
||||||
const database = sqlite(sunriseDB)
|
const database = sqlite(sunriseDB, { readonly: true })
|
||||||
|
|
||||||
const burialSite = database.prepare(sql).get(burialSiteIdOrLotName) as
|
const burialSite = database.prepare(sql).get(burialSiteIdOrLotName) as
|
||||||
| BurialSite
|
| BurialSite
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
"@types/http-errors": "^2.0.4",
|
"@types/http-errors": "^2.0.4",
|
||||||
"@types/leaflet": "^1.9.17",
|
"@types/leaflet": "^1.9.17",
|
||||||
"@types/mssql": "^9.1.7",
|
"@types/mssql": "^9.1.7",
|
||||||
"@types/node": "^22.14.1",
|
"@types/node": "^22.15.3",
|
||||||
"@types/node-windows": "^0.1.6",
|
"@types/node-windows": "^0.1.6",
|
||||||
"@types/papaparse": "^5.3.15",
|
"@types/papaparse": "^5.3.15",
|
||||||
"@types/randomcolor": "^0.5.9",
|
"@types/randomcolor": "^0.5.9",
|
||||||
|
|
@ -2038,9 +2038,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.14.1",
|
"version": "22.15.3",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz",
|
||||||
"integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==",
|
"integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.21.0"
|
"undici-types": "~6.21.0"
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
"@types/http-errors": "^2.0.4",
|
"@types/http-errors": "^2.0.4",
|
||||||
"@types/leaflet": "^1.9.17",
|
"@types/leaflet": "^1.9.17",
|
||||||
"@types/mssql": "^9.1.7",
|
"@types/mssql": "^9.1.7",
|
||||||
"@types/node": "^22.14.1",
|
"@types/node": "^22.15.3",
|
||||||
"@types/node-windows": "^0.1.6",
|
"@types/node-windows": "^0.1.6",
|
||||||
"@types/papaparse": "^5.3.15",
|
"@types/papaparse": "^5.3.15",
|
||||||
"@types/randomcolor": "^0.5.9",
|
"@types/randomcolor": "^0.5.9",
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ import type {
|
||||||
} from '../../types/record.types.js'
|
} from '../../types/record.types.js'
|
||||||
|
|
||||||
import type { Sunrise } from './types.js'
|
import type { Sunrise } from './types.js'
|
||||||
import { ref } from 'process'
|
|
||||||
|
|
||||||
declare const cityssm: cityssmGlobal
|
declare const cityssm: cityssmGlobal
|
||||||
declare const bulmaJS: BulmaJS
|
declare const bulmaJS: BulmaJS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue