Fix incorrect sql query

This commit is contained in:
AsamK 2023-08-21 17:00:15 +02:00
parent 795c5f6a04
commit fb8624f630

View file

@ -884,7 +884,7 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
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)) {