Fix feeds.set_parent api call.
This commit is contained in:
parent
8b0feb2abb
commit
55afe54d25
1 changed files with 2 additions and 1 deletions
|
@ -102,13 +102,14 @@ function set_isolate_guids(feed_id, isolate_guids, callback)
|
|||
api.feeds.set_parent =
|
||||
function set_parent(feed_id, parent_id, ui_order_rank, callback)
|
||||
{
|
||||
data = {"parent_id": parent_id};
|
||||
if (ui_order_rank !== null)
|
||||
{
|
||||
data["ui_order_rank"] = ui_order_rank;
|
||||
}
|
||||
return http.post({
|
||||
url: `/feed/${feed_id}/set_parent`,
|
||||
data: {"parent_id": parent_id},
|
||||
data: data,
|
||||
callback: callback,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue