fix(convex): order spoonCommits by committedAt via index so bounding keeps newest

This commit is contained in:
Gabriel Brown
2026-07-11 14:41:31 -04:00
parent 9067d16734
commit bce6769277
3 changed files with 57 additions and 4 deletions
+1
View File
@@ -186,6 +186,7 @@ const applicationTables = {
updatedAt: v.number(),
})
.index('by_spoon_side', ['spoonId', 'side'])
.index('by_spoon_side_committed', ['spoonId', 'side', 'committedAt'])
.index('by_owner', ['ownerId'])
.index('by_sha', ['spoonId', 'sha'])
.index('by_committed', ['spoonId', 'committedAt']),