mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Updated request call to use correct form
This commit is contained in:
parent
e6e212d436
commit
735aa59851
1 changed files with 10 additions and 4 deletions
|
|
@ -362,16 +362,22 @@ describe "API", ->
|
|||
# all the user objects are the main user
|
||||
# instead of the party members just registered
|
||||
party = _party
|
||||
inviteURL = baseURL + "/groups/" + group._id + "/invite?uuid="
|
||||
inviteURL = baseURL + "/groups/" + group._id + "/invite"
|
||||
async.parallel [
|
||||
(cb2) ->
|
||||
request.post(inviteURL + party[0]._id).end ->
|
||||
request.post(inviteURL).send(
|
||||
uuids: [party[0]._id]
|
||||
).end ->
|
||||
cb2()
|
||||
(cb2) ->
|
||||
request.post(inviteURL + party[1]._id).end ->
|
||||
request.post(inviteURL).send(
|
||||
uuids: [party[1]._id]
|
||||
).end ->
|
||||
cb2()
|
||||
(cb2) ->
|
||||
request.post(inviteURL + party[2]._id).end ->
|
||||
request.post(inviteURL).send(
|
||||
uuids: [party[2]._id]
|
||||
).end (res)->
|
||||
cb2()
|
||||
], cb
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue