mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 16:51:33 +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));
|
||||
|
||||
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()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user