Last active
October 1, 2019 13:23
-
-
Save dbayarchyk/484b49cfe35659c5985c8d93dd6a8bc9 to your computer and use it in GitHub Desktop.
Revisions
-
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 2 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,16 +8,12 @@ async function fetchAndUpdatePosts() { } if (!posts) { return; } try { await updatePosts(); } catch { console.log('error in updating posts'); } } -
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,12 +8,16 @@ async function fetchAndUpdatePosts() { } if (!posts) { return null; } let updatedPosts; try { updatedPosts = await updatePosts(); } catch { console.log('error in updating posts'); } return updatedPosts || null; } -
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,4 @@ async function fetchAndUpdatePosts() { } catch { console.log('error in updating posts'); } } -
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,10 @@ async function fetchAndUpdatePosts() { console.log('error in fetching posts'); } if (!posts) { return; } try { await updatePosts(); } catch { -
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,4 +12,6 @@ async function fetchAndUpdatePosts() { } catch { console.log('error in updating posts'); } console.log('updated posts successfully'); } -
dbayarchyk revised this gist
Oct 1, 2019 . No changes.There are no files selected for viewing
-
dbayarchyk revised this gist
Oct 1, 2019 . 2 changed files with 15 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ async function fetchAndUpdatePosts() { let posts; try { posts = await fetchPosts(); } catch { console.log('error in fetching posts'); } try { await updatePosts(); } catch { console.log('error in updating posts'); } } -
dbayarchyk revised this gist
Oct 1, 2019 . No changes.There are no files selected for viewing
-
dbayarchyk revised this gist
Oct 1, 2019 . 1 changed file with 14 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,15 @@ function doSomething() { fetchPosts() .then((items) => { updatePosts() .then(() => { console.log('updated posts successfully'); }) .catch(() => { console.log('error in updating posts'); }); }) .catch(() => { console.log('error in fetching posts'); }); } -
dbayarchyk created this gist
Oct 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ async function doSomthing() { }