CEC-2075 Remove supplier active directory id (#167)
* CEC-2075 Remove supplier oid * Clean up
This commit is contained in:
@@ -39,6 +39,9 @@ const suppliersAPI = {
|
||||
data.push(supplier);
|
||||
return supplier;
|
||||
},
|
||||
activateSupplier: async (_email, _token) => {
|
||||
return { message: "2022-07-14T21:02:58.998182Z" };
|
||||
},
|
||||
deleteSupplier: async (email) => {
|
||||
const index = data.findIndex((element) => element.email === email);
|
||||
if (index >= 0) data.splice(index, 1);
|
||||
|
||||
@@ -20,6 +20,17 @@ const suppliersAPI = {
|
||||
.then(fetchRespHandler)
|
||||
.catch(errorHandler),
|
||||
|
||||
activateSupplier: async (email, token) =>
|
||||
fetch(`${API_ENDPOINT}/supplier/activate/${email}`, {
|
||||
method: "POST",
|
||||
headers: Object.assign(
|
||||
{ "Content-Type": "application/json" },
|
||||
getAuthHeaderOptions(token)
|
||||
),
|
||||
})
|
||||
.then(fetchRespHandler)
|
||||
.catch(errorHandler),
|
||||
|
||||
deleteSupplier: async (email, token) =>
|
||||
fetch(`${API_ENDPOINT}/supplier/${email}`, {
|
||||
method: "DELETE",
|
||||
|
||||
Reference in New Issue
Block a user