sunrise-cms/helpers/lotOccupancyDB/moveLotTypeDown.ts

17 lines
541 B
TypeScript

import { clearLotTypesCache } from "../functions.cache.js";
import { moveRecordDown, moveRecordDownToBottom } from "./moveRecord.js";
export function moveLotTypeDown(lotTypeId: number | string): boolean {
const success = moveRecordDown("LotTypes", lotTypeId);
clearLotTypesCache();
return success;
}
export function moveLotTypeDownToBottom(lotTypeId: number | string): boolean {
const success = moveRecordDownToBottom("LotTypes", lotTypeId);
clearLotTypesCache();
return success;
}
export default moveLotTypeDown;