Skip to content

Commit 7ee32b0

Browse files
let > const, arrow functions
1 parent 04b310e commit 7ee32b0

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

monitor/alerts/instance-delete-example/instance-delete-example.3.x.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const authToken = 'your_auth_token';
55

66
const client = require('twilio')(accountSid, authToken);
77

8-
client.monitor.v1.alerts('NO5a7a84730f529f0a76b3e30c01315d1a').remove()
8+
client.monitor.v1
9+
.alerts('NO5a7a84730f529f0a76b3e30c01315d1a')
10+
.remove()
911
.then((data) =>
1012
console.log('Sid NO5a7a84730f529f0a76b3e30c01315d1a deleted successfully.'))
1113
.catch((error) => console.log(error));

monitor/alerts/instance-get-example/instance-get-example.3.x.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ const authToken = 'your_auth_token';
55

66
const client = require('twilio')(accountSid, authToken);
77

8-
client.monitor.v1.alerts('NO5a7a84730f529f0a76b3e30c01315d1a').fetch()
8+
client.monitor.v1
9+
.alerts('NO5a7a84730f529f0a76b3e30c01315d1a')
10+
.fetch()
911
.then((data) => console.log(data.alertText));

stun-turn/list-post-example/list-post-example.3.x.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ const authToken = 'your_auth_token';
55

66
const client = require('twilio')(accountSid, authToken);
77

8-
client.api.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').tokens.create({})
8+
client.api.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').tokens
9+
.create({})
910
.then((token) => console.log(token.username));

video/users/token-generation-server-rooms/token-generation-server.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const randomUsername = require('./randos');
1212
const app = express();
1313
app.use(express.static(path.join(__dirname, 'public')));
1414

15-
app.get('/token', function(request, response) {
15+
app.get('/token', (request, response) => {
1616
const identity = randomUsername();
1717

1818
// Create an access token which we will sign and return to the client,

video/users/token-generation-server/token-generation-server.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const randomUsername = require('./randos');
1212
const app = express();
1313
app.use(express.static(path.join(__dirname, 'public')));
1414

15-
app.get('/token', function(request, response) {
15+
app.get('/token', (request, response) => {
1616
const identity = randomUsername();
1717

1818
// Create an access token which we will sign and return to the client,

0 commit comments

Comments
 (0)