12 lines
522 B
JavaScript
12 lines
522 B
JavaScript
import { updateLotOccupancyComment } from "../../helpers/lotOccupancyDB/updateLotOccupancyComment.js";
|
|
import { getLotOccupancyComments } from "../../helpers/lotOccupancyDB/getLotOccupancyComments.js";
|
|
export const handler = async (request, response) => {
|
|
const success = updateLotOccupancyComment(request.body, request.session);
|
|
const lotOccupancyComments = getLotOccupancyComments(request.body.lotOccupancyId);
|
|
response.json({
|
|
success,
|
|
lotOccupancyComments
|
|
});
|
|
};
|
|
export default handler;
|