Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. .then(result => {
  2. logInfo(`plexEndpoint: Received successful response from Plex after ${stopTimer()}ms.`);
  3. trace('MADE IT HERE', result);
  4. return transformPlexResponse({
  5. request: payload,
  6. response: prop('data', result),
  7. env,
  8. });
  9. })
  10. .catch(err => {
  11. if (env.returnErrors) {
  12. return {
  13. Parameters: {},
  14. Rows: [],
  15. Errors: [
  16. {
  17. request: payload,
  18. message: err.message,
  19. statusCode: pathOr(500, ['response', 'status'], err),
  20. },
  21. ],
  22. };
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement