Manually import single change from old staging repo

This commit is contained in:
Emmanuel BENOîT 2025-01-04 15:28:26 +01:00
parent fc4c6bd340
commit c74e30d5ba
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -874,7 +874,7 @@ BEGIN
|| 's' ) :: INTERVAL; || 's' ) :: INTERVAL;
g_time := ( floor(sys.get_constant('accounts.warnings.grace')) || 's' )::INTERVAL; g_time := ( floor(sys.get_constant('accounts.warnings.grace')) || 's' )::INTERVAL;
UPDATE admin.warnings SET last_received = now( ) - g_time , warnings = warnings - 1 UPDATE admin.warnings SET last_received = now( ) - g_time , warnings = warnings - 1
WHERE now() - last_received >= e_time AND warnings > 0; WHERE now() - last_received >= g_time AND warnings > 0;
END; END;
$$ LANGUAGE plpgsql; $$ LANGUAGE plpgsql;