Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class MarathonApiGroupEndpoints {
}

async update (groupId, data, force) {
const params = new URLSearchParams([['force', force]])
const { data: result } = await this.client.put(groupId, { json: data }, { params })
const params = new URLSearchParams([['force', !!force]])
const path = encodeURIComponent(groupId)
const { data: result } = await this.client.put(path, data, { params })
return result
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "marathon-node",
"version": "2.0.1",
"version": "2.0.2",
"description": "Node.js client library for Mesos Marathon's REST API",
"main": "index.js",
"scripts": {
Expand Down