Skip to content

Commit

Permalink
don't add futureDate to file metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestopcontinues authored Nov 5, 2016
1 parent 48914de commit 1e0d0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function plugin(opts) {
delete files[file].collection;
}

data.futureDate = new Date(pub || data[opts.futureMeta]);
var futureDate = new Date(pub || data[opts.futureMeta]);

if (data.futureDate.getTime() > Date.now() && !opts.future) {
if (futureDate.getTime() > Date.now() && !opts.future) {
futureFiles[file] = data;
return delete files[file]
}
Expand Down

0 comments on commit 1e0d0ef

Please sign in to comment.