Skip to content

Commit

Permalink
Merge pull request #875 from KEEPER31337/feature/pointApi_쿼리키_포맷_통일_#868
Browse files Browse the repository at this point in the history
refactor : point Api querykey factor
  • Loading branch information
jasper200207 authored Jan 18, 2024
2 parents 51767c6 + 759847b commit c51de75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/pointApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c51de75

Please sign in to comment.