#949 replace other occurances of now() with LOCALTIMESTAMP

This commit is contained in:
Oliver Gorwits
2023-03-03 14:17:38 +00:00
parent 29402f0726
commit d9a384d1d0
15 changed files with 33 additions and 33 deletions

View File

@@ -47,7 +47,7 @@ register_worker({ phase => 'main' }, sub {
my $devices = schema('netdisco')->resultset('Device')->search(undef, {
'+columns' => { old =>
\['age(now(), last_discover) > ?::interval', $down_age] },
\['age(LOCALTIMESTAMP, last_discover) > ?::interval', $down_age] },
});
$config->{groups} ||= { default => 'any' };