Skip to content

Commit a536d89

Browse files
authored
Merge pull request #11 from elasticio/PLT-1366
Plt 1366
2 parents 5e908f9 + 9a0ebda commit a536d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/triggers/contacts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const messages = require('elasticio-node').messages;
44
const co = require('co');
55
const MicrosoftGraph = require('msgraph-sdk-javascript');
6-
const rp = require('request-promise');
76
const _ = require('lodash');
87
const ApiClient = require('../apiClient');
98

@@ -27,6 +26,7 @@ function processAction(msg, cfg, snapshot) {
2726

2827
const instance = new ApiClient(cfg, self);
2928

29+
//checking if refresh token was successful
3030
const newAccessToken
3131
= yield instance.getRefreshedToken()
3232
.catch(() => this.emit('error', new Error('Failed to refresh token')));

0 commit comments

Comments
 (0)