From 94b8b870f5ce3059158c2cdc9406f8afc29cbc52 Mon Sep 17 00:00:00 2001 From: Mathieu Lemieux Date: Mon, 30 May 2022 11:22:00 -0700 Subject: [PATCH] Fix civic loader on api schema change --- package-lock.json | 4 ++-- package.json | 2 +- src/civic/evidenceItems.graphql | 2 +- src/civic/index.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67392ee4..6f5d2042 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@bcgsc-pori/graphkb-loader", - "version": "6.3.0", + "version": "6.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@bcgsc-pori/graphkb-loader", - "version": "6.3.0", + "version": "6.3.1", "license": "GPL-3", "dependencies": { "@bcgsc-pori/graphkb-parser": "^1.1.1", diff --git a/package.json b/package.json index e1052b47..b0d0c307 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bcgsc-pori/graphkb-loader", "main": "src/index.js", - "version": "6.3.0", + "version": "6.3.1", "repository": { "type": "git", "url": "https://github.com/bcgsc/pori_graphkb_loader.git" diff --git a/src/civic/evidenceItems.graphql b/src/civic/evidenceItems.graphql index 83aa8d3d..98770e89 100644 --- a/src/civic/evidenceItems.graphql +++ b/src/civic/evidenceItems.graphql @@ -21,7 +21,7 @@ query evidenceItems( $phenotypeId: Int $sortBy: EvidenceSort $sourceId: Int - $status: EvidenceStatus + $status: EvidenceStatusFilter $userId: Int $variantId: Int $variantName: String diff --git a/src/civic/index.js b/src/civic/index.js index c81e6463..783247f8 100644 --- a/src/civic/index.js +++ b/src/civic/index.js @@ -504,7 +504,7 @@ const fetchDeletedEvidenceItems = async (url) => { // Get rejected evidenceItems logger.info(`loading rejected evidenceItems from ${url}`); const rejected = await requestEvidenceItems(url, { - query: `query evidenceItems($after: String, $status: EvidenceStatus) { + query: `query evidenceItems($after: String, $status: EvidenceStatusFilter) { evidenceItems(after: $after, status: $status) { nodes {id} pageCount