Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Kanishchev committed Oct 9, 2024
1 parent 0e4bae9 commit 8b6de90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ services:
backend:
image: therealyou322/backend:latest
container_name: backend
build:
context: .
volumes:
- ./path/to/deploy/proxies.txt:/app/files/proxies.txt
ports:
- "3004:3004"
- "3001:3001"
Expand All @@ -40,7 +44,7 @@ services:
environment:
DATABASE_URL: mongodb://mstuca_master:mstuca_master@mongo:27017/
RABBITMQ_URL: amqp://user:password@rabbitmq:5672
PROXIES_PATH: /path/to/deploy/proxies.txt
PROXIES_PATH: .files/proxies.txt
networks:
- backend

Expand Down
2 changes: 1 addition & 1 deletion src/apps/sync-shedule/sync-shedule.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class SyncSheduleController {
await this.syncSheduleService.syncAllTeachers();
}

@Cron(CronExpression.EVERY_5_MINUTES)
@Cron(CronExpression.EVERY_11_HOURS)
async syncShedulesStudents(): Promise<void> {
await this.syncSheduleService.syncAllStudents();
}
Expand Down

0 comments on commit 8b6de90

Please sign in to comment.