handlers/organizations-post/doEditRemark.js
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;