Fix typos
This commit is contained in:
parent
e37d4b2ddf
commit
f726d953d5
1 changed files with 6 additions and 6 deletions
|
@ -69,19 +69,19 @@ defp restore_following_column do
|
||||||
updated_at = now()
|
updated_at = now()
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
follwer.id AS follower_id,
|
follower.id AS follower_id,
|
||||||
CASE follwer.local
|
CASE follower.local
|
||||||
WHEN TRUE THEN
|
WHEN TRUE THEN
|
||||||
array_prepend(follwer.follower_address, array_agg(following.follower_address))
|
array_prepend(follower.follower_address, array_agg(following.follower_address))
|
||||||
ELSE
|
ELSE
|
||||||
array_agg(following.follower_address)
|
array_agg(following.follower_address)
|
||||||
END AS following_array
|
END AS following_array
|
||||||
FROM
|
FROM
|
||||||
following_relationships
|
following_relationships
|
||||||
JOIN users AS follwer ON follwer.id = following_relationships.follower_id
|
JOIN users AS follower ON follower.id = following_relationships.follower_id
|
||||||
JOIN users AS FOLLOWING ON following.id = following_relationships.following_id
|
JOIN users AS following ON following.id = following_relationships.following_id
|
||||||
GROUP BY
|
GROUP BY
|
||||||
follwer.id) AS following_query
|
follower.id) AS following_query
|
||||||
WHERE
|
WHERE
|
||||||
following_query.follower_id = users.id
|
following_query.follower_id = users.id
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue