utcDateStr => utcDateTimeStr

This commit is contained in:
zadam
2021-11-04 19:52:00 +01:00
parent a9df0c485f
commit 57b7f6199e
5 changed files with 15 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ function addRecentNote(req) {
if (Math.random() < 0.05) {
// it's not necessary to run this everytime ...
const cutOffDate = dateUtils.utcDateStr(new Date(Date.now() - 24 * 3600 * 1000));
const cutOffDate = dateUtils.utcDateTimeStr(new Date(Date.now() - 24 * 3600 * 1000));
sql.execute(`DELETE FROM recent_notes WHERE utcDateCreated < ?`, [cutOffDate]);
}