fix undefined issue

deepsource-autofix-76c6eb20
Dan Gowans 2024-06-20 10:55:19 -04:00
parent e7472d905a
commit 4e59ebe8ad
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export async function addLotOccupancyComment(commentForm, user) {
recordCreate_userName, recordCreate_timeMillis, recordCreate_userName, recordCreate_timeMillis,
recordUpdate_userName, recordUpdate_timeMillis) recordUpdate_userName, recordUpdate_timeMillis)
values (?, ?, ?, ?, ?, ?, ?, ?)`) values (?, ?, ?, ?, ?, ?, ?, ?)`)
.run(commentForm.lotOccupancyId, lotOccupancyCommentDate, lotOccupancyCommentTime, commentForm.lotOccupancyComment, user.userName, rightNow.getTime(), user.userName, rightNow.getTime()); .run(commentForm.lotOccupancyId, lotOccupancyCommentDate, lotOccupancyCommentTime ?? 0, commentForm.lotOccupancyComment, user.userName, rightNow.getTime(), user.userName, rightNow.getTime());
database.release(); database.release();
return result.lastInsertRowid; return result.lastInsertRowid;
} }

View File

@ -50,7 +50,7 @@ export async function addLotOccupancyComment(
.run( .run(
commentForm.lotOccupancyId, commentForm.lotOccupancyId,
lotOccupancyCommentDate, lotOccupancyCommentDate,
lotOccupancyCommentTime, lotOccupancyCommentTime ?? 0,
commentForm.lotOccupancyComment, commentForm.lotOccupancyComment,
user.userName, user.userName,
rightNow.getTime(), rightNow.getTime(),