Skip to content

Commit

Permalink
remove lower()
Browse files Browse the repository at this point in the history
  • Loading branch information
lauti7 committed Apr 23, 2024
1 parent db5b582 commit 0e0c5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function createDBComponent(components: Pick<AppComponents, 'pg' | 'logs'>
SELECT f.address_requester as address, fa.timestamp, fa.metadata FROM friendships f
INNER JOIN friendship_actions fa ON f.id = fa.friendship_id
WHERE
(LOWER(f.address_requested)) = LOWER(${userAddress})
f.address_requested = ${userAddress}
AND fa.action = 'request'
AND f.is_active IS FALSE
AND fa.timestamp = (
Expand All @@ -178,7 +178,7 @@ export function createDBComponent(components: Pick<AppComponents, 'pg' | 'logs'>
SELECT f.address_requested as address, fa.timestamp, fa.metadata FROM friendships f
INNER JOIN friendship_actions fa ON f.id = fa.friendship_id
WHERE
(LOWER(f.address_requester)) = LOWER(${userAddress})
f.address_requester = ${userAddress}
AND fa.action = 'request'
AND f.is_active IS FALSE
AND fa.timestamp = (
Expand Down

0 comments on commit 0e0c5f1

Please sign in to comment.