diff --git a/package.json b/package.json index 72f94d5c..91577ca4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.35.3", + "version": "3.35.4", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/database.js b/src/database.js index 1caf22e3..7c812220 100644 --- a/src/database.js +++ b/src/database.js @@ -209,7 +209,7 @@ module.exports.cleanOldPasswordResets = function (callback) { callback = blackHole; } - var query = "DELETE FROM aliases WHERE time < ?"; + var query = "DELETE FROM password_reset WHERE expire < ?"; module.exports.query(query, [Date.now() - 24*60*60*1000], callback); };