mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-04-18 11:50:00 +08:00
fix: user cache age comparison
This commit is contained in:
parent
f3b82a4d50
commit
0238d26984
@ -109,7 +109,7 @@ export class JinaEmbeddingsAuthDTO extends AutoCastable {
|
||||
const jitter = Math.ceil(Math.random() * 30 * 1000);
|
||||
|
||||
if (account && !ignoreCache) {
|
||||
if (account && age < (180_000 - jitter)) {
|
||||
if (account && (age < (180_000 - jitter))) {
|
||||
this.user = account;
|
||||
this.uid = this.user?.user_id;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user