Skip to content

Commit

Permalink
Update use-get-program-by-id.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeno committed Aug 12, 2024
1 parent c84af3f commit c5985f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import { ProgramInterface } from "@/core/domain/program/models/program-model";

export function useGetProgramById({
options,
pathParams,
}: UseQueryFacadeParams<ProgramFacadePort["getProgramById"], ProgramInterface>) {
const programStoragePort = bootstrap.getProgramStoragePortForClient();

return useQuery(
useQueryAdapter({
...programStoragePort.getProgramById({}),
...programStoragePort.getProgramById({ pathParams }),
options,
})
);
Expand Down

0 comments on commit c5985f2

Please sign in to comment.