Skip to content

Commit 786cefa

Browse files
committed
Correctly update metadata when extracting zip
1 parent 654fa6b commit 786cefa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sync-manager.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ export default class SyncManager {
259259
await this.logger.info("Written file", {
260260
normalizedPath,
261261
});
262+
this.metadataStore.data.files[normalizedPath] = {
263+
path: normalizedPath,
264+
sha: files[normalizedPath].sha,
265+
dirty: false,
266+
justDownloaded: true,
267+
lastModified: Date.now(),
268+
};
269+
await this.metadataStore.save();
262270
}),
263271
);
264272

0 commit comments

Comments
 (0)