Skip to content

Commit

Permalink
update imports and cron schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkoh committed Sep 21, 2024
1 parent 8345eb5 commit 4bcfa89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import teamRoutes from './routes/teamRoutes';
import teamSetRoutes from './routes/teamSetRoutes';
import userRoutes from './routes/userRoutes';
import { connectToDatabase } from './utils/database';
import setupCodeAnalysisJob from 'jobs/codeAnalysisJob';
import setupCodeAnalysisJob from './jobs/codeAnalysisJob';

const env = process.env.NODE_ENV ?? 'development';
config({ path: `.env.${env}` });
Expand Down
2 changes: 1 addition & 1 deletion backend/jobs/codeAnalysisJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const getAndSaveCodeData = async (gitHubOrgName: string, repo: any) => {

export const setupCodeAnalysisJob = () => {
// Schedule the job to run every day at midnight
cron.schedule('0 0 * * *', async () => {
cron.schedule('0 2 * * *', async () => {
console.log(
'Running fetchAndSaveCodeAnalysisData job:',
new Date().toString()
Expand Down

0 comments on commit 4bcfa89

Please sign in to comment.