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
|
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")
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue