fix: cache 2

This commit is contained in:
TrèsAbhi committed 2024-06-06 19:08:29 -05:00
1 parent 729a45f8a8
commit eadd66dc6c
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -23,4 +23,4 @@ jobs:
run: bun install
- name: Discover IDs
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} GH_TOKEN=${{ secrets.GH_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/discoverIds.ts
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} GH_TOKEN=${{ secrets.GH_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/discoverIds.ts --production
+2
View File
@@ -27,6 +27,8 @@ const preDiscoveredRaw = await fetch(
return undefined;
});
console.log(`Running in ${production ? 'production' : 'development'} mode`);
if (preDiscoveredRaw === undefined) {
console.log('No pre-discovered ids found :(');
} else {