(id, update)
| 29 | } |
| 30 | |
| 31 | export const updateCustomer = async (id, update) => { |
| 32 | try { |
| 33 | return await axios.put( |
| 34 | `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers/${id}`, |
| 35 | update, |
| 36 | getAuthConfig() |
| 37 | ) |
| 38 | } catch (e) { |
| 39 | throw e; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | export const deleteCustomer = async (id) => { |
| 44 | try { |
no test coverage detected