Fixed SQL statement in Root.purgeReferrers()
This commit is contained in:
parent
92c4089df7
commit
b2cf3ece2d
1 changed files with 1 additions and 3 deletions
|
@ -119,10 +119,8 @@ Root.commitReferrers = function() {
|
|||
|
||||
Root.purgeReferrers = function() {
|
||||
var sql = new Sql;
|
||||
var threshold = new Date();
|
||||
threshold.setDate(threshold.getDate() - 1);
|
||||
var result = sql.execute("delete from log where action = 'main' and " +
|
||||
"created < $0", threshold.format(SQLDATEFORMAT));
|
||||
"created < date_add(now(), interval -1 day)");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue