sql query tweak
This commit is contained in:
parent
0bc8b96ea5
commit
75cc1dcc27
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ namespace BirdsiteLive.DAL.Postgres.DataAccessLayers
|
|||
{
|
||||
if (followedUserId == default) throw new ArgumentException("followedUserId");
|
||||
|
||||
var query = $"SELECT * FROM {_settings.FollowersTableName} WHERE $1=ANY(followings)";
|
||||
var query = $"SELECT * FROM {_settings.FollowersTableName} WHERE followings @> ARRAY[$1]";
|
||||
|
||||
await using var connection = DataSource.CreateConnection();
|
||||
await connection.OpenAsync();
|
||||
|
|
Reference in a new issue