updated the rider info and some csv changes as well updated the api.ts files
This commit is contained in:
@@ -3,6 +3,16 @@ import { OpenToast } from 'components/third-party/OpenToast';
|
||||
import dayjs from 'dayjs';
|
||||
const userid = localStorage.getItem('userid');
|
||||
|
||||
// ==============================|| getRiderPeriodicLogs ||============================== //
|
||||
// Returns the rider's latest periodic log entry — battery, GPS, status, current
|
||||
// order. Used by the Rider Info modal on the Dispatch page.
|
||||
export const getRiderPeriodicLogs = async (userid) => {
|
||||
const url = `${process.env.REACT_APP_URL}/utils/getriderperiodiclogs${userid ? `?userid=${userid}` : ''}`;
|
||||
const response = await axios.get(url);
|
||||
if (response.data && response.data.status) return response.data.data;
|
||||
return null;
|
||||
};
|
||||
|
||||
// ==============================|| fetchAppLocations||============================== //
|
||||
|
||||
export const fetchAppLocations = async () => {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user