2018-01-22 01:20:41 +00:00
|
|
|
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) {
|
2018-07-02 21:03:00 +00:00
|
|
|
return put(`/employer/${uuid}/`, { provider_approved: approved }).then(resp =>
|
2018-01-22 01:20:41 +00:00
|
|
|
Promise.resolve(resp)
|
|
|
|
);
|
|
|
|
}
|