Skip to content

Commit

Permalink
change action to loader name (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano authored Sep 3, 2024
1 parent 18510ff commit a353299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wake/loaders/suggestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Props {
* @title Wake Integration
* @description Product Suggestion loader
*/
const action = async (
const loader = async (
props: Props,
req: Request,
ctx: AppContext,
Expand Down Expand Up @@ -56,4 +56,4 @@ const action = async (
};
};

export default action;
export default loader;
4 changes: 2 additions & 2 deletions wake/loaders/wishlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { parseHeaders } from "../utils/parseHeaders.ts";
* @title Wake Integration
* @description Product Wishlist loader
*/
const action = async (
const loader = async (
_props: unknown,
req: Request,
ctx: AppContext,
Expand Down Expand Up @@ -40,4 +40,4 @@ const action = async (
): p is WishlistReducedProductFragment => Boolean(p)) ?? [];
};

export default action;
export default loader;

0 comments on commit a353299

Please sign in to comment.