Use the now() for PostgreSQL

This prevents and error for SQLite
This commit is contained in:
FusionPBX
2022-10-19 11:29:22 -06:00
committed by GitHub
parent 7e88b594dd
commit 2816a54a8f

View File

@@ -254,7 +254,7 @@
if (database["type"] == "mysql") then
params.now = os.time();
sql = sql .. "AND expires > :now ";
else
elseif (database["type"] == "pgsql") then
sql = sql .. "AND to_timestamp(expires) > NOW()";
end
if (debug["sql"]) then