cityssm/lottery-licence-manager

View on GitHub
handlers/organizations-post/doEditRemark.js

Summary

Maintainability
A
2 hrs
Test Coverage
F
28%
import { updateOrganizationRemark } from "../../helpers/licencesDB/updateOrganizationRemark.js";
export const handler = (request, response) => {
    const success = updateOrganizationRemark(request.body, request.session);
    return success
        ? response.json({
            success: true,
            message: "Remark updated successfully."
        })
        : response.json({
            success: false,
            message: "Remark could not be updated."
        });
};
export default handler;