Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit 53c1229

Browse files
committed
fix json return value for artifactsGet when in non-cli mode
1 parent 0f3b838 commit 53c1229

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jobs/artifactsGet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function artifactsGet(params, cb) {
5252
params.jobId = projectConfig.getLastJobId(null, params.jobId);
5353
var downloadedFiles;
5454
var json = false;
55-
if (params.json) {
55+
if (params.json || !global.paperspace_cli) {
5656
json = true;
5757
delete params.json;
5858
downloadedFiles = [];

samples/sample_jobs_node_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ paperspace.jobs.create({
7777
console.log('err: ' + err);
7878
process.exit(1);
7979
}
80-
console.log(resp);
80+
console.log(resp.body);
8181

8282
console.log('done');
8383
});

0 commit comments

Comments
 (0)