add await

This commit is contained in:
Amruth Pillai
2022-11-24 22:16:00 +01:00
parent e9a5f86a6a
commit 7ac8b906d9

View File

@ -71,7 +71,7 @@ export const fetchResumeByIdentifier = async ({
console.log('ResumeService~fetchResumeByIdentifier', 'using axios', JSON.stringify(resume));
const resumeJSON = fetch(env('SERVER_URL') + `/resume/${username}/${slug}?secretKey=${secretKey}`).then(
const resumeJSON = await fetch(env('SERVER_URL') + `/resume/${username}/${slug}?secretKey=${secretKey}`).then(
(response) => response.json()
);