From 0238d269840d493ad1f8f6e929b5b406de118c73 Mon Sep 17 00:00:00 2001 From: "yanlong.wang" Date: Tue, 1 Apr 2025 16:56:21 +0800 Subject: [PATCH] fix: user cache age comparison --- src/dto/jina-embeddings-auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dto/jina-embeddings-auth.ts b/src/dto/jina-embeddings-auth.ts index 9790560..120bd5e 100644 --- a/src/dto/jina-embeddings-auth.ts +++ b/src/dto/jina-embeddings-auth.ts @@ -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;