CEC-2075 Remove supplier active directory id (#167)

* CEC-2075 Remove supplier oid

* Clean up
This commit is contained in:
John Wu
2022-07-18 10:39:07 -07:00
committed by GitHub
parent 0d2f9c8d74
commit 05d841159c
8 changed files with 134 additions and 111 deletions

View File

@@ -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",