Skip to content

Commit

Permalink
chore(deps): upgrade @wei/probot-scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
wei committed Nov 21, 2024
1 parent d989511 commit 6d442f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@std/assert": "jsr:@std/assert@1",
"@std/http": "jsr:@std/http@1",
"@wei/pluralize": "jsr:@wei/pluralize@^8.0.2",
"@wei/probot-scheduler": "jsr:@wei/probot-scheduler@0.1.0-alpha.16",
"@wei/probot-scheduler": "jsr:@wei/probot-scheduler@0.1.0-alpha.17",
"bullmq": "npm:bullmq@^5.26.2",
"express": "npm:express@^4.21.1",
"ioredis": "npm:ioredis@^5.4.1",
Expand Down
9 changes: 4 additions & 5 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions scripts/full-sync.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { connectMongoDB, disconnectMongoDB } from "@/src/configs/database.ts";
import { fullSync } from "@wei/probot-scheduler";
import { createProbot } from "probot";
import { fullSync } from "@wei/probot-scheduler";
import logger from "@/src/utils/logger.ts";
import { connectMongoDB, disconnectMongoDB } from "@/src/configs/database.ts";
import { getRepositorySchedule } from "@/src/utils/get-repository-schedule.ts";
import { getRedisClient } from "@/src/configs/redis.ts";
import { appConfig } from "@/src/configs/app-config.ts";

async function main() {
let exitCode = 0;

try {
await connectMongoDB();
const redisClient = getRedisClient(`${appConfig.appSlug}-full-sync`);

const probot = createProbot({ overrides: { log: logger } });
await fullSync(probot, {
redisClient,
getRepositorySchedule,
});
} catch (error) {
Expand Down

0 comments on commit 6d442f9

Please sign in to comment.