12 lines
407 B
JavaScript
12 lines
407 B
JavaScript
import { moveLotStatusDown } from "../../helpers/lotOccupancyDB/moveLotStatusDown.js";
|
|
import { getLotStatuses } from "../../helpers/functions.cache.js";
|
|
export const handler = async (request, response) => {
|
|
const success = moveLotStatusDown(request.body.lotStatusId);
|
|
const lotStatuses = getLotStatuses();
|
|
response.json({
|
|
success,
|
|
lotStatuses
|
|
});
|
|
};
|
|
export default handler;
|