Skip to content

Commit

Permalink
fix: mtimeMs is not backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Aug 13, 2019
1 parent 03e9db4 commit c6f74eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/local-storage/src/local-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ class Storage implements IStorage {
return cb(err);
}

if (stats.mtimeMs > parseInt(startKey, 10)) {
if (stats.mtime.getTime() > parseInt(startKey, 10)) {
this.getPackageMetadata(item.name, (err: Error, data: Package) => {
if (err) {
return cb(err);
Expand Down

0 comments on commit c6f74eb

Please # to comment.