Skip to content

Commit

Permalink
🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Jun 19, 2024
1 parent c0c4c82 commit ec40546
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/cron.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "dotenv/config";
import { CronJob } from "cron";
import { main } from "./main";

Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "dotenv/config";
import { Octokit } from "octokit";
import axios from "axios";
import _, { chunk, compact } from "lodash";
Expand Down Expand Up @@ -29,7 +28,7 @@ export const main = async () => {
console.log(new Date(), `Found ${stars.length} starred repos!`);

// Since we passed a custom header, the types aren't accurate anymore
type ActualStar = { starred_at: string; repo: typeof stars[number] };
type ActualStar = { starred_at: string; repo: (typeof stars)[number] };

const newRaindrops = (stars as unknown as ActualStar[]).map((star) => {
return {
Expand Down

0 comments on commit ec40546

Please sign in to comment.