File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1818 "@std/assert" : " jsr:@std/assert@1" ,
1919 "@std/http" : " jsr:@std/http@1" ,
2020 "@wei/pluralize" : " jsr:@wei/pluralize@^8.0.2" ,
21- "@wei/probot-scheduler" : " jsr:@wei/probot-scheduler@0.1.0-alpha.16 " ,
21+ "@wei/probot-scheduler" : " jsr:@wei/probot-scheduler@0.1.0-alpha.17 " ,
2222 "bullmq" : " npm:bullmq@^5.26.2" ,
2323 "express" : " npm:express@^4.21.1" ,
2424 "ioredis" : " npm:ioredis@^5.4.1" ,
Original file line number Diff line number Diff line change 1- import { connectMongoDB , disconnectMongoDB } from "@/src/configs/database.ts" ;
2- import { fullSync } from "@wei/probot-scheduler" ;
31import { createProbot } from "probot" ;
2+ import { fullSync } from "@wei/probot-scheduler" ;
43import logger from "@/src/utils/logger.ts" ;
4+ import { connectMongoDB , disconnectMongoDB } from "@/src/configs/database.ts" ;
55import { getRepositorySchedule } from "@/src/utils/get-repository-schedule.ts" ;
6+ import { getRedisClient } from "@/src/configs/redis.ts" ;
7+ import { appConfig } from "@/src/configs/app-config.ts" ;
68
79async function main ( ) {
810 let exitCode = 0 ;
911
1012 try {
1113 await connectMongoDB ( ) ;
14+ const redisClient = getRedisClient ( `${ appConfig . appSlug } -full-sync` ) ;
1215
1316 const probot = createProbot ( { overrides : { log : logger } } ) ;
1417 await fullSync ( probot , {
18+ redisClient,
1519 getRepositorySchedule,
1620 } ) ;
1721 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments