Skip to content

Commit c6f74eb

Browse files
@jotadevelopersergiohgz
authored andcommitted
fix: mtimeMs is not backward compatible
1 parent 03e9db4 commit c6f74eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/local-storage/src/local-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class Storage implements IStorage {
656656
return cb(err);
657657
}
658658

659-
if (stats.mtimeMs > parseInt(startKey, 10)) {
659+
if (stats.mtime.getTime() > parseInt(startKey, 10)) {
660660
this.getPackageMetadata(item.name, (err: Error, data: Package) => {
661661
if (err) {
662662
return cb(err);

0 commit comments

Comments
 (0)