Skip to content

Commit 1b3f73d

Browse files
committed
Project asignment must contai username
1 parent 9e8a9f4 commit 1b3f73d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-device/task/api/api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports.setDeviceProject = async function(deviceId, project) {
110110
return axios({
111111
method: 'put',
112112
url: `/v1/users/${USER}/devices/${deviceId}/projects`,
113-
data: JSON.stringify([ project ])
113+
data: [ `${USER}@${project}` ]
114114
});
115115
}
116116

@@ -119,6 +119,6 @@ module.exports.setBucketProject = async function(bucketId, project) {
119119
return axios({
120120
method: 'put',
121121
url: `/v1/users/${USER}/buckets/${deviceID}/projects`,
122-
data: JSON.stringify([ project ])
122+
data: [ `${USER}@${project}` ]
123123
});
124124
}

0 commit comments

Comments
 (0)