mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
add await
This commit is contained in:
@ -71,7 +71,7 @@ export const fetchResumeByIdentifier = async ({
|
|||||||
|
|
||||||
console.log('ResumeService~fetchResumeByIdentifier', 'using axios', JSON.stringify(resume));
|
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()
|
(response) => response.json()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user