cityssm/lottery-licence-manager

View on GitHub
handlers/locations-post/doMerge.js

Summary

Maintainability
A
0 mins
Test Coverage
F
40%
import { mergeLocations } from "../../helpers/licencesDB/mergeLocations.js";
export const handler = (request, response) => {
    const targetLocationID = request.body.targetLocationID;
    const sourceLocationID = request.body.sourceLocationID;
    const success = mergeLocations(targetLocationID, sourceLocationID, request.session);
    response.json({
        success
    });
};
export default handler;