deepsource-autofix-76c6eb20
Dan Gowans 2022-08-30 14:47:31 -04:00
parent e0761624bc
commit 4ab29dd5df
5 changed files with 57 additions and 45 deletions

View File

@ -1,6 +1,10 @@
import type { RequestHandler } from "express";
import type {
RequestHandler
} from "express";
import { addMap } from "../../helpers/lotOccupancyDB/addMap.js";
import {
addMap
} from "../../helpers/lotOccupancyDB/addMap.js";
export const handler: RequestHandler = async (request, response) => {

View File

@ -1,6 +1,10 @@
import type { RequestHandler } from "express";
import type {
RequestHandler
} from "express";
import { updateMap } from "../../helpers/lotOccupancyDB/updateMap.js";
import {
updateMap
} from "../../helpers/lotOccupancyDB/updateMap.js";
export const handler: RequestHandler = async (request, response) => {

View File

@ -305,12 +305,12 @@
<% if (lotOccupancy.occupancyEndDate) { %>
<%= lotOccupancy.occupancyEndDateString %>
<% } else { %>
(No End Date)
<span class="has-text-grey">(No End Date)</span>
<% } %>
</td>
<td>
<% if (lotOccupancy.lotOccupancyOccupants.length === 0) { %>
(No <%= configFunctions.getProperty("aliases.occupants") %>)
<span class="has-text-grey">(No <%= configFunctions.getProperty("aliases.occupants") %>)</span>
<% } else { %>
<% const occupant = lotOccupancy.lotOccupancyOccupants[0]; %>
<%= occupant.occupantName %>

View File

@ -86,7 +86,11 @@
</p>
<p>
<strong>End Date</strong><br />
<span class="has-text-grey"><%= (lotOccupancy.occupancyEndDateString === "" ? "(No End Date)" : lotOccupancy.occupancyEndDateString) %></span>
<% if (lotOccupancy.occupancyEndDateString === "") { %>
<span class="has-text-grey">(No End Date)</span>
<% } else { %>
<%= lotOccupancy.occupancyEndDateString %>
<% } %>
</p>
</div>
<% if (lotOccupancy.lotOccupancyFields.length > 0) { %>