From a353299e812f388de05a8e3b96d09df293f9d0a4 Mon Sep 17 00:00:00 2001 From: guitavano Date: Tue, 3 Sep 2024 14:05:55 -0300 Subject: [PATCH] change action to loader name (#831) --- wake/loaders/suggestion.ts | 4 ++-- wake/loaders/wishlist.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wake/loaders/suggestion.ts b/wake/loaders/suggestion.ts index ee63c0d35..c580511e1 100644 --- a/wake/loaders/suggestion.ts +++ b/wake/loaders/suggestion.ts @@ -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, @@ -56,4 +56,4 @@ const action = async ( }; }; -export default action; +export default loader; diff --git a/wake/loaders/wishlist.ts b/wake/loaders/wishlist.ts index 7c93f0527..83b0b9041 100644 --- a/wake/loaders/wishlist.ts +++ b/wake/loaders/wishlist.ts @@ -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, @@ -40,4 +40,4 @@ const action = async ( ): p is WishlistReducedProductFragment => Boolean(p)) ?? []; }; -export default action; +export default loader;