From 19601e01fe121473c78e0689e12fe63377e00971 Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Thu, 19 Dec 2024 09:59:24 +0100 Subject: [PATCH] WIP --- apps/transport/lib/transport_web/plugs/worker_healthcheck.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex index 10ea528f77..aec1a65be8 100644 --- a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex +++ b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex @@ -39,7 +39,7 @@ defmodule TransportWeb.Plugs.WorkerHealthcheck do def app_started_recently? do start_datetime = app_start_datetime() {delay, unit} = @app_start_waiting_delay - DateTime.before?(start_datetime, DateTime.add(start_datetime, delay, unit)) + DateTime.before?(DateTime.utc_now(), DateTime.add(start_datetime, delay, unit)) end def app_start_datetime do