._.
This commit is contained in:
parent
63bb8efcfb
commit
3979f02c7e
@ -542,7 +542,7 @@ export const getDeliveryOrderDetails = async (deliveryOrderId) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const calculateTotalOrder = async () => {
|
export const calculateTotalOrder = async (deadline, robotsCount) => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
`${API_URL}/total-orders/calculate`,
|
`${API_URL}/total-orders/calculate`,
|
||||||
|
|||||||
@ -33,7 +33,6 @@ const Users = () => {
|
|||||||
const fetchUsers = async () => {
|
const fetchUsers = async () => {
|
||||||
try {
|
try {
|
||||||
const data = await getUsers();
|
const data = await getUsers();
|
||||||
console.log(data);
|
|
||||||
setUsers(data);
|
setUsers(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.status === 401) {
|
if (error.response && error.response.status === 401) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user