Skip to content

Commit

Permalink
clients/web: fix license key endpoint usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Nov 13, 2024
1 parent 5dff3b5 commit 7f82d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const ClientPage = ({

const { data: licenseKeys, isLoading } = useOrganizationLicenseKeys({
organizationId: organization.id,
benefitIds: selectedBenefitId ? [selectedBenefitId] : undefined,
benefitId: selectedBenefitId ? [selectedBenefitId] : undefined,
...getAPIParams(pagination, sorting),
})

Expand Down
6 changes: 3 additions & 3 deletions clients/apps/web/src/hooks/queries/license_keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useLicenseKeyDeactivation = (licenseKeyId: string) =>

export const useOrganizationLicenseKeys = ({
organizationId,
benefitIds,
benefitId,
page,
limit,
}: LicenseKeysApiListRequest) =>
Expand All @@ -65,12 +65,12 @@ export const useOrganizationLicenseKeys = ({
'license_keys',
'organization',
organizationId,
{ page, limit, benefitIds },
{ page, limit, benefitId },
],
queryFn: () =>
api.licenseKeys.list({
organizationId,
benefitIds,
benefitId,
page,
limit,
}),
Expand Down

0 comments on commit 7f82d0d

Please sign in to comment.