mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +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;
|
||||
}
|
||||
|
||||
content.text = result;
|
||||
this.contentCache.set(content.text, result);
|
||||
content.text = result;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -140,8 +140,8 @@ class Translator {
|
|||
}
|
||||
|
||||
for (let i = 0; i < batch.length; i += 1) {
|
||||
batch[i].text = result[i];
|
||||
this.contentCache.set(batch[i].text, result[i]);
|
||||
batch[i].text = result[i];
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue