diff --git a/code/cron/cron.jar b/code/cron/cron.jar index 1ef20d6ced..dd46362d05 100644 Binary files a/code/cron/cron.jar and b/code/cron/cron.jar differ diff --git a/code/cron/src/com/turning_leaf_technologies/cron/DatabaseCleanup.java b/code/cron/src/com/turning_leaf_technologies/cron/DatabaseCleanup.java index 407b64d974..774821afcc 100644 --- a/code/cron/src/com/turning_leaf_technologies/cron/DatabaseCleanup.java +++ b/code/cron/src/com/turning_leaf_technologies/cron/DatabaseCleanup.java @@ -454,7 +454,7 @@ private void removeOldLastListUsed(Connection dbConn, Logger logger, CronProcess //Get list of libraries that want last used list cleared PreparedStatement librariesListStmt = dbConn.prepareStatement("SELECT libraryId FROM library WHERE deleteLastListUsedEntries = 1"); PreparedStatement libraryLocationsStmt = dbConn.prepareStatement("SELECT locationId FROM location where libraryId = ?"); - PreparedStatement deleteLastListUsedStmt = dbConn.prepareStatement("UPDATE user SET lastListUsed = NULL WHERE lastListUsed = ?"); + PreparedStatement deleteLastListUsedStmt = dbConn.prepareStatement("UPDATE user SET lastListUsed = -1 WHERE lastListUsed = ?"); ResultSet librariesListRS = librariesListStmt.executeQuery();