feat: add ability to follow and unfollow a user on their profile page

This commit is contained in:
Stevan Freeborn
2023-09-15 17:02:20 -05:00
parent bc86873d89
commit 2a1b46f06d
6 changed files with 221 additions and 14 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ export default defineSchema(
follower: v.id('users'), // person following
})
.index('by_following', ['following'])
.index('by_follower', ['follower']),
.index('by_follower', ['follower'])
.index('by_following_follower_id', ['following', 'follower']),
},
{ schemaValidation: false }
);