Skip to content

Commit

Permalink
Fixed: File deletion broken
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-4ward committed May 7, 2017
1 parent a8fc0d4 commit 703c733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = class DB {
for (sid of Object.keys(this.db)) {
for (f of this.db[sid]) {
// no removal of one-time downloads
if(!Number.isInteger(f.metadata.retention)) return;
if(!Number.isInteger(+f.metadata.retention)) return;

expires = (+f.metadata.createdAt) + (+f.metadata.retention * 1000) - Date.now();
if(expires <= 0) {
Expand Down

0 comments on commit 703c733

Please sign in to comment.