File "getWithContragent.ts"
Full Path: /var/www/html/gitep_front/src/entities/project/api/getWithContragent.ts
File size: 486 bytes
MIME-type: text/x-java
Charset: utf-8
import { $modelStore } from '@shared/index';
import { axiosInstance } from "@shared/api";
export const getWithContragent = async () => {
try {
const modelId = $modelStore.getState().model;
if (!modelId) {
throw new Error("modelId не задана");
}
const result = await axiosInstance.get(`contragents/${modelId}/with-payments`);
return result
} catch (error) {
console.error('getProgects error', error)
}
}