Correctly update metadata when extracting zip

This commit is contained in:
Silvano Cerza 2025-04-18 19:41:16 +02:00
parent 654fa6b455
commit 786cefaf4d

View file

@ -259,6 +259,14 @@ export default class SyncManager {
await this.logger.info("Written file", {
normalizedPath,
});
this.metadataStore.data.files[normalizedPath] = {
path: normalizedPath,
sha: files[normalizedPath].sha,
dirty: false,
justDownloaded: true,
lastModified: Date.now(),
};
await this.metadataStore.save();
}),
);