Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lab07/prod-frontend-billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"express": "^4.18.2",
"google-auth-library": "^9.6.3",
"got": "^14.2.0",
"got": "^14.4.8",
"hbs": "^4.2.0",
"path": "^0.12.7",
"request": "^2.88.2",
Expand Down
5 changes: 2 additions & 3 deletions lab07/prod-frontend-billing/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// [START run_secure_request]

const {GoogleAuth} = require('google-auth-library');
const got = import('got');
const {got} = require('got');
const auth = new GoogleAuth();

let client, serviceUrl;
Expand All @@ -34,8 +34,7 @@ const renderRequest = async (markdown) => {
headers: {
'Content-Type': 'text/plain'
},
body: markdown,
timeout: 3000
body: markdown
};

try {
Expand Down