Skip to content

Commit 2afd9d4

Browse files
author
Laurie T. Malau
committed
Fix args
1 parent 5bdda8e commit 2afd9d4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

components/dashboard/src/teams/TeamUsage.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ import { useContext, useEffect, useState } from "react";
88
import { Redirect, useLocation } from "react-router";
99
import { getCurrentTeam, TeamsContext } from "./teams-context";
1010
import { getGitpodService, gitpodHostUrl } from "../service/service";
11-
import { BillableSession, BillableWorkspaceType, SortOrder } from "@gitpod/gitpod-protocol/lib/usage";
11+
import {
12+
BillableSession,
13+
BillableSessionRequest,
14+
BillableWorkspaceType,
15+
SortOrder,
16+
} from "@gitpod/gitpod-protocol/lib/usage";
1217
import { AttributionId } from "@gitpod/gitpod-protocol/lib/attribution";
1318
import { Item, ItemField, ItemsList } from "../components/ItemsList";
1419
import moment from "moment";
@@ -42,11 +47,11 @@ function TeamUsage() {
4247
}
4348
(async () => {
4449
const attributionId = AttributionId.render({ kind: "team", teamId: team.id });
45-
const request = {
50+
const request: BillableSessionRequest = {
4651
attributionId,
4752
startedTimeOrder,
48-
startDateOfBillMonth,
49-
endDateOfBillMonth,
53+
from: startDateOfBillMonth,
54+
to: endDateOfBillMonth,
5055
};
5156
try {
5257
const billedUsageResult = await getGitpodService().server.listBilledUsage(request);

0 commit comments

Comments
 (0)