Skip to content

Commit

Permalink
Attempt to wait on the promise first
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertLucian committed Dec 17, 2024
1 parent da79f55 commit 5202ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cdklocal
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ const fetchURLAsync = (url) => new Promise((resolve, reject) => {
req.end();
});

const getTemplateBody = (params) => {
const getTemplateBody = async (params) => {
if (params.TemplateBody) {
return params.TemplateBody;
}
return fetchURLAsync(params.TemplateURL);
return await fetchURLAsync(params.TemplateURL);
};

// small import util function
Expand Down

0 comments on commit 5202ac4

Please sign in to comment.