Commit 34c4748
committed
Format of data received has changed
Renaming res to result, since it may be confused with response.
Instead of res.request.uri.path
the path is now found in result.req.path
as on util.inspect ing the result object we find
[ { req:
{ domain: null,
...
method: 'GET',
path: '/teams/233393/members/saraf?access_token=fa5657bf47838731ef4ce82a929faba19803a097', //<=== this is what we want
...
res: [Object] },
res:
{ _readableState: [Object],
readable: false,
domain: null,
...
Note: I do not know if we can reliably test for the account being
an enterprise git account by looking at the path for "/api/v3"
(and the req object does not now have a "uri" property anymore.)
Needs to be tested/looked at by someone with an enterprise git account.1 parent d4c6999 commit 34c4748
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | | - | |
420 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
421 | 422 | | |
422 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
429 | | - | |
| 432 | + | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| |||
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
| 444 | + | |
441 | 445 | | |
442 | 446 | | |
443 | 447 | | |
| |||
459 | 463 | | |
460 | 464 | | |
461 | 465 | | |
| 466 | + | |
462 | 467 | | |
463 | 468 | | |
464 | 469 | | |
| |||
0 commit comments