Skip to content

Commit bdc92da

Browse files
committed
fix delay
1 parent a77200d commit bdc92da

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.github/workflows/syndicate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: node post-dev-to.js
4141
env:
4242
PRIVATE_DEVTO: ${{ secrets.PRIVATE_DEVTO }}
43-
- name: syndicate:dev-to
43+
- name: syndicate:podcast-dev-to
4444
working-directory: ./apps/codingcatdev/scripts
4545
run: node podcast-dev-to.js
4646
env:

apps/codingcatdev/scripts/podcast-dev-to.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ for await (const file of g) {
7272
}
7373
}
7474
// Avoid 429
75-
delay(Integer(process.env.SYNDICATE_DELAY) || 10000);
75+
await delay(process.env?.SYNDICATE_DELAY ? Integer(process.env.SYNDICATE_DELAY) : 10000);
7676
} catch (error) {
7777
console.error(error);
7878
}

apps/codingcatdev/scripts/post-dev-to.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ for await (const file of g) {
6868
}
6969
}
7070
// Avoid 429
71-
delay(Integer(process.env.SYNDICATE_DELAY) || 10000);
71+
await delay(process.env?.SYNDICATE_DELAY ? Integer(process.env.SYNDICATE_DELAY) : 10000);
7272
} catch (error) {
7373
console.error(error);
7474
}

apps/codingcatdev/src/routes/(content-single)/(non-course)/podcast/0-0-the-purrfect-beginning/+page.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ podcast: CodingCat.dev
1212
chapters_done: true
1313
cloudinary_convert: false
1414
cover: https://media.codingcat.dev/image/upload/main-codingcatdev-photo/fvjgqo2gifcvdlpih6zk.png
15+
devto: 'none'
1516
excerpt: We are on a mission to provide you with the latest tools and trends, that take you from a house cat to a fierce LION.
1617
guests:
1718
- nick-rouech
19+
hashnode: 'none'
1820
slug: 0-0-the-purrfect-beginning
1921
spotify: https://open.spotify.com/episode/7CNCzMYjhDOFlol9glttxP?si=WmoeWiyEQACDrHADiiwgkw
2022
start: December 14, 2019

0 commit comments

Comments
 (0)