up
This commit is contained in:
parent
cdb742053b
commit
9dd23f70cf
2 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ export class TlvFilesStorage {
|
|||
return data
|
||||
}
|
||||
|
||||
PersistNow = () => {
|
||||
this.persist()
|
||||
}
|
||||
|
||||
private persist = () => {
|
||||
if (!this.metaReady) {
|
||||
throw new Error("meta metrics not ready")
|
||||
|
|
|
|||
|
|
@ -319,7 +319,9 @@ class TlvFilesStorageProcessor {
|
|||
private async handleZipStorages(operation: ZipStoragesOperation) {
|
||||
const paths = []
|
||||
for (const storageName in this.storages) {
|
||||
this.storages[storageName].PersistNow()
|
||||
paths.push(this.storages[storageName].GetStoragePath())
|
||||
|
||||
}
|
||||
if (paths.length === 0) {
|
||||
this.sendResponse({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue