added current date to modify query for reports

This commit is contained in:
Pau 2025-05-27 02:28:05 +02:00
parent bdf233cb2c
commit 82d85ac864
1 changed files with 2 additions and 1 deletions

View File

@ -30,8 +30,9 @@ const insertUserHasPlacesModel = ({conn, ...params}) => {
}
const modifyUserHasPlacesModel = ({conn, ...params}) => {
const now = dayjs.utc().format('YYYY-MM-DD HH:mm:ss')
return mysql
.execute(modifyUserHasPlacesQuery(params), conn, params)
.execute(modifyUserHasPlacesQuery({...params, mow}), conn, {...params, now})
.then(queryResult => {
const deletedItem = queryResult[1].find(item => item.deleted !== null);