Skip to content

Commit

Permalink
fix: log the detected ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakMukhopadhyay committed Nov 24, 2021
1 parent 89534ea commit 8fdd870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tick_detector/src/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export class Detector {
}

public async check(): Promise<void> {
console.log('Checking...');
const mongoSession = await mongoose.startSession();
await mongoSession.withTransaction(async () => {
let start: string | Date = moment().subtract(1, 'month').format('YYYY-MM-DDTHH:mm:ssZ');
Expand Down Expand Up @@ -90,6 +89,7 @@ export class Detector {
`Tick - ${start.format('YYYY-MM-DD HH:mm:ss')} - ${detected.format('YYYY-MM-DD HH:mm:ss')} - ${size} items`
);
this.socket.emit('tick', start.format('YYYY-MM-DDTHH:mm:ssZ'));
console.log(start.format('YYYY-MM-DDTHH:mm:ssZ'));
}
}
});
Expand Down

0 comments on commit 8fdd870

Please sign in to comment.