Skip to content

Commit

Permalink
fix(queries): type 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Sep 12, 2023
1 parent d4a97ea commit df4e113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gql/post/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ interface IPostProps {
size: string | number;
}

interface IPostQueryProps extends IPostProps {
interface IPostQueryProps {
type: PostCategoryType;
id: number;
}

Expand All @@ -29,7 +30,7 @@ export const GET_POST = ({ type, id }: IPostQueryProps) => {
export const GET_POST_LIST = ({ type, page, size }: IPostProps) => {
return gql`
query {
readByCategory ( category: "${type}" page: ${page} ) {
readByCategory ( category: "${type}" page: ${page} size: ${size} ) {
entity {
id
${DEFAULT_POST}
Expand Down

0 comments on commit df4e113

Please sign in to comment.