Skip to content

Commit 9d97680

Browse files
committed
Fix issues found on staging
1 parent f970c26 commit 9d97680

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

demo/graph-tutorial/graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = {
7575
await client
7676
.api('/me/events')
7777
.post(newEvent);
78-
}
78+
},
7979
// </CreateEventSnippet>
8080
};
8181

tutorial/04-add-aad-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Start the server and browse to `https://localhost:3000`. Click the sign-in butto
178178

179179
1. Replace the existing callback route with the following code.
180180

181-
:::code language="javascript" source="../demo/graph-tutorial/routes/auth.js" id="CallbackSnippet" highlight="13-22":::
181+
:::code language="javascript" source="../demo/graph-tutorial/routes/auth.js" id="CallbackSnippet" highlight="13-23":::
182182

183183
The new code saves the user's account ID in the session, gets the user's details from Microsoft Graph, and saves it in the app's user storage.
184184

tutorial/05-add-ms-graph.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this exercise you will incorporate Microsoft Graph into the application. For
66

77
1. Open `./graph.js` and add the following function inside `module.exports`.
88

9-
:::code language="javascript" source="../demo/graph-tutorial/graph.js" id="GetEventsSnippet":::
9+
:::code language="javascript" source="../demo/graph-tutorial/graph.js" id="GetCalendarViewSnippet":::
1010

1111
Consider what this code is doing.
1212

@@ -21,6 +21,8 @@ In this exercise you will incorporate Microsoft Graph into the application. For
2121
const graph = require('../graph.js');
2222
const moment = require('moment-timezone');
2323
const iana = require('windows-iana');
24+
const { body, validationResult } = require('express-validator');
25+
const validator = require('validator');
2426

2527
/* GET /calendar */
2628
router.get('/',
@@ -132,7 +134,7 @@ Now you can add a view to display the results in a more user-friendly manner.
132134
133135
1. Now update the route in `./routes/calendar.js` to use this view. Replace the existing route with the following code.
134136
135-
:::code language="javascript" source="../demo/graph-tutorial/routes/calendar.js" id="GetRouteSnippet" highlight="32-35,48,50-53,60":::
137+
:::code language="javascript" source="../demo/graph-tutorial/routes/calendar.js" id="GetRouteSnippet" highlight="33-36,49,51-54,61":::
136138
137139
1. Save your changes, restart the server, and sign in to the app. Click on the **Calendar** link and the app should now render a table of events.
138140

0 commit comments

Comments
 (0)