Skip to content

Commit 12783db

Browse files
committed
fix: get submission artifacts
1 parent 02635ff commit 12783db

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- attach_workspace:
2929
at: .
3030
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
31-
- run: npm publish
31+
- run: npm publish --tag test-release
3232
# dont change anything
3333
workflows:
3434
version: 2

src/services/submissions.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ class SubmissionsService {
6464
.then(res => res.result);
6565
}
6666

67+
/**
68+
* Get submission artifacts of challenge
69+
* @param {Object} submissionId
70+
* @return {Promise} Resolves to the api response.
71+
*/
72+
async getSubmissionArtifacts(submissionId) {
73+
const url = `/submissions/${submissionId}/artifacts`;
74+
return this.private.apiV5.get(url)
75+
.then(checkErrorV5)
76+
.then(res => res.result);
77+
}
78+
6779
/**
6880
* Get scan reviews types
6981
* @returns {Promise} Resolves to the api response.

0 commit comments

Comments
 (0)