mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix: fix typerror on stations object
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import type { IStation } from "../types";
|
||||
// import type { IStation } from "../types";
|
||||
import { api } from "../utils/api";
|
||||
import type { Passenger } from "@edr/types";
|
||||
|
||||
export const stationsService = {
|
||||
list: async (): Promise<IStation[]> => {
|
||||
list: async (): Promise<Passenger.IStation[]> => {
|
||||
const { data } = await api.get("/stations");
|
||||
return data.data;
|
||||
},
|
||||
get: async (id: string): Promise<IStation> => {
|
||||
get: async (id: string): Promise<Passenger.IStation> => {
|
||||
const { data } = await api.get(`/stations/${id}`);
|
||||
return data.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user