feature/delete-with-validation

This commit is contained in:
hreyes
2026-02-09 14:22:24 -06:00
parent 45edc56820
commit efdbb404a6
3 changed files with 45 additions and 69 deletions

View File

@@ -117,7 +117,7 @@ export const customsBrokersApi = {
* Elimina un agente aduanal
*/
delete: (brokerKey: string, companyId: string) => {
return api.delete<CustomsBroker>(`/v1/a76/customs-brokers/${brokerKey}/?company_id=${companyId}`);
return api.delete<CustomsBroker>(`/v1/a76/customs-brokers/${brokerKey}?company_id=${companyId}`);
},