diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-15 14:34:09 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-15 14:34:09 -0500 |
commit | 7ae392ad76532513ccb3393c07636a413b28edb2 (patch) | |
tree | 33262633d76df95ddf265889ab3d8fc3632a7b06 /src/database | |
parent | followers and following tabs (diff) | |
download | xssbook-7ae392ad76532513ccb3393c07636a413b28edb2.tar.gz xssbook-7ae392ad76532513ccb3393c07636a413b28edb2.tar.bz2 xssbook-7ae392ad76532513ccb3393c07636a413b28edb2.zip |
fix flex dir, follower/folowing swap fix
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/friends.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database/friends.rs b/src/database/friends.rs index 7e23616..f592675 100644 --- a/src/database/friends.rs +++ b/src/database/friends.rs @@ -84,8 +84,8 @@ impl Database { WHERE EXISTS ( SELECT NULL FROM friends f - WHERE f.follower_id = ? - AND u.user_id = f.followee_id + WHERE u.user_id = f.follower_id + AND f.followee_id = ? ) ", )?; @@ -106,8 +106,8 @@ impl Database { WHERE EXISTS ( SELECT NULL FROM friends f - WHERE u.user_id = f.follower_id - AND f.followee_id = ? + WHERE f.follower_id = ? + AND u.user_id = f.followee_id ) ", )?; |