Skip to content

Commit

Permalink
Merge pull request #213 from RJ-SMTR/hotfix/#207-history
Browse files Browse the repository at this point in the history
Squashed commit of the following:
  • Loading branch information
williamfl2007 committed Mar 8, 2024
2 parents 01db9e9 + 14baa2b commit 8d36b10
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/cron-jobs/cron-jobs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,34 +112,34 @@ export class CronJobsService implements OnModuleInit {
},
},
},
{
name: CrobJobsEnum.updateTransacaoFromJae,
cronJobParameters: {
cronTime: '* * * * *',
onTick: async () => {
await this.updateTransacaoFromJae();
},
},
},
{
name: CrobJobsEnum.updateRemessa,
cronJobParameters: {
cronTime: '45 14 * * *',
onTick: async () => {
await this.updateRemessa();
},
},
},
{
name: CrobJobsEnum.updateRetorno,
cronJobParameters: {
cronTime: '45 14 * * *', // 14:45 GMT = 11:45BRT (GMT-3)
onTick: async () => {
await this.updateRetorno();
},
},
}


// {
// name: CrobJobsEnum.updateTransacaoFromJae,
// cronJobParameters: {
// cronTime: '* * * * *',
// onTick: async () => {
// await this.updateTransacaoFromJae();
// },
// },
// },
// {
// name: CrobJobsEnum.updateRemessa,
// cronJobParameters: {
// cronTime: '45 14 * * *',
// onTick: async () => {
// await this.updateRemessa();
// },
// },
// },
// {
// name: CrobJobsEnum.updateRetorno,
// cronJobParameters: {
// cronTime: '45 14 * * *', // 14:45 GMT = 11:45BRT (GMT-3)
// onTick: async () => {
// await this.updateRetorno();
// },
// },
// }
);

for (const jobConfig of this.jobsConfig) {
Expand Down

0 comments on commit 8d36b10

Please sign in to comment.