diff --git a/client/src/services/Dashboard/AirlineDashboard.ts b/client/src/services/Dashboard/AirlineDashboard.ts
index 81e6d63fa0cf201f8bede562f5f2ce480bca98fc..37c97021968b4ff3854ec733e0848e1e59b4531a 100644
--- a/client/src/services/Dashboard/AirlineDashboard.ts
+++ b/client/src/services/Dashboard/AirlineDashboard.ts
@@ -35,7 +35,10 @@ export async function GetAirlineDashboardData({request}: {request: Request}): Pr
   try {
     const id = getSearchParam(request.url, 'id');
     const result = await Api.get(`Flight?airlineId=${id}`, { withCredentials: true });
-    return result.data;
+    return {
+      type: 'airline',
+      flightList : result.data
+    };
   } catch (error) {
     throw error;
   }
diff --git a/client/src/services/Dashboard/CustomerDashboard.ts b/client/src/services/Dashboard/CustomerDashboard.ts
index 03946610bf06c899918dda3763807494197a4b76..cff674c48e209c88b2cd520ca5f7b61aa06bb84d 100644
--- a/client/src/services/Dashboard/CustomerDashboard.ts
+++ b/client/src/services/Dashboard/CustomerDashboard.ts
@@ -31,7 +31,7 @@ export interface ICustomerDashboardData {
   flightsHistory: IFlight[];
 }
 
-export async function GetCustomerDashboardData(): Promise<ICustomerDashboardData> {
+export async function GetCustomerDashboardData({ request } : { request: Request }): Promise<ICustomerDashboardData> {
   try {
     const upcomingFlights = Api.get('', {withCredentials: true});
     const flightsHistory = Api.get('', {withCredentials: true});