diff options
author | Yorhel <git@yorhel.nl> | 2014-10-11 09:09:21 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-10-11 09:09:21 +0200 |
commit | 8d5c9edc3d9576e647b4915cba10cdcbb5fab1fe (patch) | |
tree | cc321a4c4c49f0cf3d7a1a2f2f536ff5c7d7edb6 /lib/Multi | |
parent | 1b590ccab6e11202e069ebed1024569e33ea7173 (diff) |
SQL: Convert login_throttle.timeout to a timestamptz
Easier to work with in custom queries.
Diffstat (limited to 'lib/Multi')
-rw-r--r-- | lib/Multi/Maintenance.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/Maintenance.pm b/lib/Multi/Maintenance.pm index 81e9aacb..4079ab1d 100644 --- a/lib/Multi/Maintenance.pm +++ b/lib/Multi/Maintenance.pm @@ -183,8 +183,8 @@ sub rmuncomfirmusers { sub cleanthrottle { $_[KERNEL]->post(pg => do => - q|DELETE FROM login_throttle WHERE timeout < ?|, - [ time ], 'log_stats', 'cleanthrottle'); + q|DELETE FROM login_throttle WHERE timeout < NOW()|, + undef, 'log_stats', 'cleanthrottle'); } |