make lotOccupantTypeId optional
parent
fc9c2973f1
commit
03386cc3d8
|
|
@ -7,7 +7,7 @@ interface AddLotOccupancyForm {
|
|||
occupancyEndDateString: string;
|
||||
occupancyTypeFieldIds?: string;
|
||||
[lotOccupancyFieldValue_occupancyTypeFieldId: string]: unknown;
|
||||
lotOccupantTypeId: string;
|
||||
lotOccupantTypeId?: string;
|
||||
occupantName?: string;
|
||||
occupantAddress1?: string;
|
||||
occupantAddress2?: string;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import sqlite from "better-sqlite3";
|
|||
import { lotOccupancyDB as databasePath } from "../../data/databasePaths.js";
|
||||
import * as dateTimeFunctions from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
import { addOrUpdateLotOccupancyField } from "./addOrUpdateLotOccupancyField.js";
|
||||
import addLotOccupancyOccupant from "./addLotOccupancyOccupant.js";
|
||||
import { addLotOccupancyOccupant } from "./addLotOccupancyOccupant.js";
|
||||
export const addLotOccupancy = (lotOccupancyForm, requestSession, connectedDatabase) => {
|
||||
const database = connectedDatabase || sqlite(databasePath);
|
||||
const rightNowMillis = Date.now();
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import { lotOccupancyDB as databasePath } from "../../data/databasePaths.js";
|
|||
import * as dateTimeFunctions from "@cityssm/expressjs-server-js/dateTimeFns.js";
|
||||
|
||||
import { addOrUpdateLotOccupancyField } from "./addOrUpdateLotOccupancyField.js";
|
||||
import { addLotOccupancyOccupant } from "./addLotOccupancyOccupant.js";
|
||||
|
||||
import type * as recordTypes from "../../types/recordTypes";
|
||||
import addLotOccupancyOccupant from "./addLotOccupancyOccupant.js";
|
||||
|
||||
interface AddLotOccupancyForm {
|
||||
occupancyTypeId: string | number;
|
||||
|
|
@ -19,7 +19,7 @@ interface AddLotOccupancyForm {
|
|||
occupancyTypeFieldIds?: string;
|
||||
[lotOccupancyFieldValue_occupancyTypeFieldId: string]: unknown;
|
||||
|
||||
lotOccupantTypeId: string;
|
||||
lotOccupantTypeId?: string;
|
||||
occupantName?: string;
|
||||
occupantAddress1?: string;
|
||||
occupantAddress2?: string;
|
||||
|
|
|
|||
Loading…
Reference in New Issue