Skip to content

Commit 3b29672

Browse files
authored
Merge pull request #17 from bcgsc/release/v6.0.1
Release/v6.0.1
2 parents 9361577 + 2e8533f commit 3b29672

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

app/api/graphkb.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,13 @@ const graphkbReviewStatus = async (graphkbToken, graphkbEntries) => {
7272
const {uri} = CONFIG.get('graphkb');
7373

7474
const filters = {
75-
'@rid': graphkbEntries.map(({kbStatementId}) => {
76-
return kbStatementId;
77-
}),
75+
'@rid': graphkbEntries
76+
.reduce((filtered, {kbStatementId}) => {
77+
if (kbStatementId.match(/^#\d+:\d+$/)) {
78+
filtered.push(kbStatementId);
79+
}
80+
return filtered;
81+
}, []),
7882
operator: 'IN',
7983
};
8084
const query = {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "ipr-api",
4-
"version": "6.0.0",
4+
"version": "6.0.1",
55
"description": "Integrated Pipeline Reports API",
66
"main": "bin/server.js",
77
"scripts": {

0 commit comments

Comments
 (0)