helpers/licencesDB/deleteLocation.ts
import { runSQL_hasChanges } from "./_runSQL.js";
import type * as expressSession from "express-session";
export const deleteLocation = (locationID: number, requestSession: expressSession.Session): boolean => {
return runSQL_hasChanges("update Locations" +
" set recordDelete_userName = ?," +
" recordDelete_timeMillis = ?" +
" where recordDelete_timeMillis is null" +
" and locationID = ?", [
requestSession.user.userName,
Date.now(),
locationID
]);
};