Skip to content

Commit f900c30

Browse files
author
Gavin Barron
committed
usig graph helper correctly
1 parent 783293a commit f900c30

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

AcceptMeeting/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ module.exports = function (context, myQueueItem) {
99
};
1010
const data = JSON.stringify(acceptData);
1111
context.log(`Accept call ${data}`);
12-
13-
GraphHelper.postData(`/v1.0/${myQueueItem.meeting}/accept`, myQueueItem.accessToken, data, (error, data) => {
12+
var graphHelper = new GraphHelper();
13+
graphHelper.postData(`/v1.0/${myQueueItem.meeting}/accept`, myQueueItem.accessToken, data, (error, data) => {
1414
if (error) {
1515
context.done(error);
1616
return;
1717
}
1818
context.done(null, data);
1919
});
2020
};
21-

CreateTravelBooking/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function (context, myQueueItem) {
2121
timeZone: "UTC"
2222
}
2323
}
24-
24+
var graphHelper = new GraphHelper();
2525
GraphHelper.postData(`/v1.0/me/events`, myQueueItem.accessToken, JSON.stringify(meeting), (error, data) => {
2626
if (error) {
2727
context.done(error);

0 commit comments

Comments
 (0)