File tree 1 file changed +2
-1
lines changed
ProcessCalendarEventNotification
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ module.exports = function (context, notification) {
15
15
16
16
var docDbClient = new DocumentClient ( documentDbOptions . host , { masterKey : documentDbOptions . masterKey } ) ;
17
17
var userRepo = new UserRepository ( docDbClient , documentDbOptions . database , documentDbOptions . collection ) ;
18
+ var graphHelper = new GraphHelper ( ) ;
18
19
userRepo . init ( ( err ) => {
19
20
if ( err ) {
20
21
context . done ( err ) ;
@@ -37,7 +38,7 @@ module.exports = function (context, notification) {
37
38
}
38
39
// Get the access token (should use the refresh token to renew this....)
39
40
// Get the Calendar event from Microsoft Graph
40
- GraphHelper . getData ( `/v1.0/${ notification . resource } ` , user . data . accessToken , ( error , data ) => {
41
+ graphHelper . getData ( `/v1.0/${ notification . resource } ` , user . data . accessToken , ( error , data ) => {
41
42
if ( error ) {
42
43
context . log ( error ) ;
43
44
context . done ( error ) ;
You can’t perform that action at this time.
0 commit comments