17 lines
518 B
TypeScript
17 lines
518 B
TypeScript
import { clearLotTypesCache } from "../functions.cache.js";
|
|
import { moveRecordUp, moveRecordUpToTop } from "./moveRecord.js";
|
|
|
|
export function moveLotTypeUp(lotTypeId: number | string): boolean {
|
|
const success = moveRecordUp("LotTypes", lotTypeId);
|
|
clearLotTypesCache();
|
|
return success;
|
|
}
|
|
|
|
export function moveLotTypeUpToTop(lotTypeId: number | string): boolean {
|
|
const success = moveRecordUpToTop("LotTypes", lotTypeId);
|
|
clearLotTypesCache();
|
|
return success;
|
|
}
|
|
|
|
export default moveLotTypeUp;
|