Skip to content

Commit

Permalink
finall
Browse files Browse the repository at this point in the history
  • Loading branch information
kiran-lakhani-sn committed Oct 9, 2023
1 parent 1c597e9 commit 6d291c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11979,6 +11979,11 @@ const axios = __nccwpck_require__(2678);
console.error('Error:', error);
});

// way 2:
const response = await fetch(endpoint);
const data = await response.json();
core.info('ServiceNow Response Data 2:', response);

core.info('success!');

} catch (e) {
Expand Down
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ const axios = require('axios');
console.error('Error:', error);
});

// way 2:
const response = await fetch(endpoint);
const data = await response.json();
core.info('ServiceNow Response Data 2:', response);

core.info('success!');

} catch (e) {
Expand Down

0 comments on commit 6d291c1

Please sign in to comment.