Skip to content

Commit

Permalink
fix: remessa
Browse files Browse the repository at this point in the history
  • Loading branch information
yxuo committed May 30, 2024
1 parent 6df096f commit fd45bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/cnab/cnab.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ export class CnabService {
) {
// 1. Verificar se as colunas de agrupamento existem nas tabelas agrupadas
const dataOrdem = yearMonthDayToDate(ordem.dataOrdem);
const fridayOrdem = nextFriday(nextThursday(startOfDay(dataOrdem)));
const fridayOrdem = nextFriday(startOfDay(dataOrdem));

/** Requisito: 1 transação por pagador, status e dataOrdem (sexta) */
let transacaoAg = await this.transacaoAgService.findOne({
dataOrdem: fridayOrdem,
pagador: { id: pagador.id },
Expand Down
4 changes: 0 additions & 4 deletions src/cron-jobs/cron-jobs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ export class CronJobsService implements OnModuleInit, OnModuleLoad {
async onModuleLoad() {
const THIS_CLASS_WITH_METHOD = 'CronJobsService.onModuleLoad';

await this.saveTransacoesJae1();
await this.sendRemessa();
// await this.updateRetorno();

this.jobsConfig.push(
{
name: CrobJobsEnum.bulkSendInvites,
Expand Down

0 comments on commit fd45bf9

Please sign in to comment.