Skip to content

Commit

Permalink
feat: 接口调整
Browse files Browse the repository at this point in the history
  • Loading branch information
limaofeng committed Jul 10, 2023
1 parent fb2910b commit 5745318
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __mocks__/graphqlMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const mocks: MockedResponse<Record<string, any>>[] = [
request: {
query: QUERY_CHECK_POINT,
variables: {
filter: {
where: {
entityName_in: ['Icon', 'IconLibrary'],
createdAt_gt: moment().format('YYYY-MM-DD HH:mm:ss'),
},
Expand Down
10 changes: 5 additions & 5 deletions src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const ALL_ICON_LIBRARIES = gql`
`;

export const QUERY_CHECK_POINT = gql`
query oplogs($filter: OplogFilter) {
oplogs(filter: $filter) {
query oplogs($where: OplogWhereInput) {
oplogs(where: $where) {
id
entityName
operation
Expand All @@ -59,7 +59,7 @@ export const QUERY_CHECK_POINT = gql`

export const QUERY_LIBRARIES = gql`
query libraries($ids: [ID]) {
libraries: iconLibraries(filter: { id_in: $ids }) {
libraries: iconLibraries(where: { id_in: $ids }) {
id
name
description
Expand All @@ -69,7 +69,7 @@ export const QUERY_LIBRARIES = gql`

export const QUERY_ICONS = gql`
query icons($ids: [ID]) {
icons(filter: { id_in: $ids }) {
icons(where: { id_in: $ids }) {
id
name
tags
Expand Down Expand Up @@ -307,7 +307,7 @@ class IconStore {
const { data } = await this._client!.query({
query: QUERY_CHECK_POINT,
variables: {
filter: {
where: {
entityName_in: ['Icon', 'IconLibrary'],
createdAt_gt: moment(pointIcon.version).format('YYYY-MM-DD HH:mm:ss'),
},
Expand Down

0 comments on commit 5745318

Please sign in to comment.