12 lines
401 B
JavaScript
12 lines
401 B
JavaScript
import { moveLotTypeFieldUp } from "../../helpers/lotOccupancyDB/moveLotTypeFieldUp.js";
|
|
import { getLotTypes } from "../../helpers/functions.cache.js";
|
|
export const handler = async (request, response) => {
|
|
const success = moveLotTypeFieldUp(request.body.lotTypeFieldId);
|
|
const lotTypes = getLotTypes();
|
|
response.json({
|
|
success,
|
|
lotTypes
|
|
});
|
|
};
|
|
export default handler;
|