File "updateContragent.ts"
Full Path: /var/www/html/gitep_front/src/entities/models/api/updateContragent.ts
File size: 341 bytes
MIME-type: text/x-java
Charset: utf-8
import { axiosInstance } from "@/shared";
export const updateContragent = async (modelId: number, id: any, params: any) => {
try {
const result = await axiosInstance.post(`contragents/${modelId}/${id}/update`, params);
return result;
} catch (error) {
console.error("updateContragent error:", error);
throw error;
}
};