fix undefined issue
parent
e7472d905a
commit
4e59ebe8ad
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue