diff options
| author | Dhravya <[email protected]> | 2024-04-13 21:11:57 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-04-13 21:11:57 -0700 |
| commit | 8752bcca28f9c331fbc4ef985472beea4381b481 (patch) | |
| tree | 0f4d0c140920a5350559fc81ed77580d80261db1 /apps/cf-ai-backend/src | |
| parent | notes in vector db (diff) | |
| download | supermemory-8752bcca28f9c331fbc4ef985472beea4381b481.tar.xz supermemory-8752bcca28f9c331fbc4ef985472beea4381b481.zip | |
get pagecount as well
Diffstat (limited to 'apps/cf-ai-backend/src')
| -rw-r--r-- | apps/cf-ai-backend/src/routes/queue.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/cf-ai-backend/src/routes/queue.ts b/apps/cf-ai-backend/src/routes/queue.ts index c00afb5b..9dcef525 100644 --- a/apps/cf-ai-backend/src/routes/queue.ts +++ b/apps/cf-ai-backend/src/routes/queue.ts @@ -15,10 +15,10 @@ export const queue = async (batch: MessageBatch, env: Env): Promise<void> => { headers: { Authorization: `Bearer ${token}`, }, - }).then((res) => res.json())) as { limit: number; tweetsCount: number; user: string }; + }).then((res) => res.json())) as { tweetsLimit: number; tweetsCount: number; user: string }; - if (messages.length > limits.limit - limits.tweetsCount) { - messages.splice(limits.limit - limits.tweetsCount); + if (messages.length > limits.tweetsLimit - limits.tweetsCount) { + messages.splice(limits.tweetsLimit - limits.tweetsCount); } if (messages.length === 0) { |