This commit is contained in:
boufni95 2025-04-10 17:41:12 +00:00
parent cdb742053b
commit 9dd23f70cf
2 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,10 @@ export class TlvFilesStorage {
return data return data
} }
PersistNow = () => {
this.persist()
}
private persist = () => { private persist = () => {
if (!this.metaReady) { if (!this.metaReady) {
throw new Error("meta metrics not ready") throw new Error("meta metrics not ready")

View file

@ -319,7 +319,9 @@ class TlvFilesStorageProcessor {
private async handleZipStorages(operation: ZipStoragesOperation) { private async handleZipStorages(operation: ZipStoragesOperation) {
const paths = [] const paths = []
for (const storageName in this.storages) { for (const storageName in this.storages) {
this.storages[storageName].PersistNow()
paths.push(this.storages[storageName].GetStoragePath()) paths.push(this.storages[storageName].GetStoragePath())
} }
if (paths.length === 0) { if (paths.length === 0) {
this.sendResponse({ this.sendResponse({