Skip to content

Commit

Permalink
Fix api resource spec property read
Browse files Browse the repository at this point in the history
  • Loading branch information
kamarmack committed Dec 17, 2024
1 parent 9ebd93a commit 613e375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions lib/healthFunctions/jsSdkHealth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export const jsSdkHealthFunction =
res: express.Response<unknown, GeneralizedResLocals>,
next: express.NextFunction,
config: {
apiResourceSpec: Pick<
GeneralizedApiResourceSpec,
'apiResourceCollectionId'
>;
apiResourceSpec: Pick<GeneralizedApiResourceSpec, 'collectionId'>;
mockApiResource: GeneralizedApiResource;
},
) =>
Expand All @@ -31,7 +28,7 @@ export const jsSdkHealthFunction =
collectionId: string;
mockApiResource: GeneralizedApiResource;
} = {
collectionId: apiResourceSpec.apiResourceCollectionId,
collectionId: apiResourceSpec.collectionId,
mockApiResource,
};

Expand Down
5 changes: 1 addition & 4 deletions lib/routes/addHealthRoutesToExpressApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ export const addHealthRoutesToExpressApp = (
params: GeneralizedSecretData & {
SECRET_CRED_STRIPE_API_KEY?: string | null;
} & GeneralizedServerVariables & {
apiResourceSpec: Pick<
GeneralizedApiResourceSpec,
'apiResourceCollectionId'
>;
apiResourceSpec: Pick<GeneralizedApiResourceSpec, 'collectionId'>;
corsPolicy: (
req: express.Request,
res: express.Response,
Expand Down

0 comments on commit 613e375

Please sign in to comment.