You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
395 B

import { put } from "./baseApi";
/**
* Function wrapping PATCH request for updating employer information
* @param {string} uuid - employer UUID
* @param {boolean} approved - whether or not to approve employment relationship
*/
export function updateEmployer(uuid, approved) {
return put(`/employer/${uuid}/`, { provider_approved: approved }).then(resp =>
Promise.resolve(resp)
);
}