X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..28bfaa9fb6aeefb3264ebcb0e032c047f0288904:/script/cleanup?ds=sidebyside diff --git a/script/cleanup b/script/cleanup index d7f29239c..3eaeef7c6 100755 --- a/script/cleanup +++ b/script/cleanup @@ -3,5 +3,6 @@ require File.dirname(__FILE__) + "/../config/environment" UserToken.delete_all("expiry < NOW()") +OauthNonce.delete_all("timestamp < EXTRACT(EPOCH FROM NOW() - INTERVAL '1 day')") exit 0