Skip to content

Commit

Permalink
Fix incorrect sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Aug 21, 2023
1 parent 795c5f6 commit fb8624f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ private Optional<RecipientWithAddress> findByServiceId(
final var sql = """
SELECT r._id, r.number, r.uuid, r.pni, r.username
FROM %s r
WHERE r.uuid = ? OR r.pni = ?
WHERE r.uuid = ?1 OR r.pni = ?1
LIMIT 1
""".formatted(TABLE_RECIPIENT);
try (final var statement = connection.prepareStatement(sql)) {
Expand Down

0 comments on commit fb8624f

Please sign in to comment.