diff --git a/todo-service/src/rabbitmq/RabbitMQ.ts b/todo-service/src/rabbitmq/RabbitMQ.ts index 14588c0..59e16d1 100644 --- a/todo-service/src/rabbitmq/RabbitMQ.ts +++ b/todo-service/src/rabbitmq/RabbitMQ.ts @@ -71,6 +71,6 @@ export class RabbitMQ { calculateDelayTimeForQueue(payload: ITodo) { const delayTime = payload.due_date.getTime() - this.currentDate.getCurrentDate().getTime(); - return 0; + return delayTime; } }