Skip to content

Commit

Permalink
logs temporarios
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueAmorim20 committed Dec 5, 2023
1 parent 53e2cd4 commit 67a7ae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rotina/rotina.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,21 @@ export class RotinaService {

async findAllToCron(): Promise<Rotina[]> {
const date = new Date();
console.log('date: ', date);
const weekday = date.getDay();
console.log('weekday: ', weekday);
const time = `${date.getHours()}:${date.getMinutes()}`;
console.log('time: ', time);

const start = new Date();
start.setUTCHours(0, 0, 0);
const startString = start.toISOString();
console.log('startString: ', startString);

const end = new Date();
end.setUTCHours(23, 59, 59);
const endString = end.toISOString();
console.log('endString: ', endString);

return this._repository
.createQueryBuilder('rotinas')
Expand Down

0 comments on commit 67a7ae2

Please sign in to comment.