From 759847b8d69fcac03dc4888fcb46516f94518533 Mon Sep 17 00:00:00 2001 From: gimdogyun Date: Thu, 18 Jan 2024 20:01:46 +0900 Subject: [PATCH] refactor : point Api querykey factor - #868 --- src/api/pointApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/pointApi.ts b/src/api/pointApi.ts index afca1c587..983c867fa 100644 --- a/src/api/pointApi.ts +++ b/src/api/pointApi.ts @@ -3,7 +3,8 @@ import axios from 'axios'; import { PointLog, PageAndSize } from './dto'; const pointKeys = { - pointLog: (param: PageAndSize) => ['pointLog', param] as const, + base: ['points'] as const, + pointLog: (param: PageAndSize) => [...pointKeys.base, param] as const, }; const useGetPointLogQuery = ({ page, size = 10 }: PageAndSize) => {