Skip to content
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/services/round.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,9 @@ export class RoundService {
+org.assessmentStartDelayInDays!
);

const utcNow = new Date();

if (startRoundDate >= utcNow
&& startRoundDate <= sevenDaysFromNow) {
if (startRoundDate <= sevenDaysFromNow) {
try {

console.log(`[${new Date()}][createRounds] Creating Round for : ${org.id}`);
console.log(`[${new Date()}][createRounds] Creating a Round for : ${org.id}`);
const endRoundDate = calculateAssessmentRoundEndTime(startRoundDate, org.assessmentDurationInDays!);

const nextCycleStartDate = calculateNextCompensationPeriodStartDay(
Expand Down