Skip to content

Commit 1a32277

Browse files
author
bgrana
committed
Use the 'public' query parameter instead of 'user_list'
1 parent ceae424 commit 1a32277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/lib/operations.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ module.exports.upload_mac = function upload_mac(grunt, instance_name, file, isPu
3737
reject(e);
3838
}
3939

40-
var users = isPublic ? '*' : '';
41-
var url = instance_info.url + '/api/resources?user_list=' + users;
40+
var url = instance_info.url + '/api/resources?public=' + isPublic;
4241
var stream = fs.createReadStream(file);
4342
stream.on('open', function () {
4443
stream.pipe(request.post({"url": url, "headers": headers}, function (error, response, body) {

0 commit comments

Comments
 (0)