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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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