Update app.js
This commit is contained in:
parent
833cf41203
commit
88b5e3421d
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -56,7 +56,7 @@ function prune () {
|
||||||
console.log("Vacuuming database...");
|
console.log("Vacuuming database...");
|
||||||
db.run("VACUUM");
|
db.run("VACUUM");
|
||||||
|
|
||||||
db.all("SELECT * FROM media WHERE expire > ?", [Date.now()], (err, rows) => {
|
db.all("SELECT * FROM media WHERE expire < ?", [Date.now()], (err, rows) => {
|
||||||
console.log("Expired rows: " + rows);
|
console.log("Expired rows: " + rows);
|
||||||
if (err) return console.error(err);
|
if (err) return console.error(err);
|
||||||
rows.forEach((row) => {
|
rows.forEach((row) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue