mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-20 16:21:46 +00:00
Fix cache
This commit is contained in:
parent
ceecfc7a22
commit
d69344f251
1 changed files with 2 additions and 2 deletions
|
|
@ -117,8 +117,8 @@ class Translator {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
content.text = result;
|
|
||||||
this.contentCache.set(content.text, result);
|
this.contentCache.set(content.text, result);
|
||||||
|
content.text = result;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -140,8 +140,8 @@ class Translator {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < batch.length; i += 1) {
|
for (let i = 0; i < batch.length; i += 1) {
|
||||||
batch[i].text = result[i];
|
|
||||||
this.contentCache.set(batch[i].text, result[i]);
|
this.contentCache.set(batch[i].text, result[i]);
|
||||||
|
batch[i].text = result[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue