Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .then(result => {
- logInfo(`plexEndpoint: Received successful response from Plex after ${stopTimer()}ms.`);
- trace('MADE IT HERE', result);
- return transformPlexResponse({
- request: payload,
- response: prop('data', result),
- env,
- });
- })
- .catch(err => {
- if (env.returnErrors) {
- return {
- Parameters: {},
- Rows: [],
- Errors: [
- {
- request: payload,
- message: err.message,
- statusCode: pathOr(500, ['response', 'status'], err),
- },
- ],
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement