Skip to content

Commit 3720b26

Browse files
committed
fix: incorrect count length
1 parent bcfbcac commit 3720b26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/backend-convex/convex/threads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const branchThreadFromMessage = mutation({
139139
})
140140
}))
141141

142-
await messagesInThreadCounter.inc(ctx, thread._id)
142+
await messagesInThreadCounter.add(ctx, thread._id, messages.length)
143143

144144
return newThreadId
145145
},

0 commit comments

Comments
 (0)