mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(minor) clean-up
This commit is contained in:
parent
6c88f00a9d
commit
a5118fe8f1
@ -79,8 +79,8 @@ public class MqPersistence {
|
||||
if (senderInboxName == null) stmt.setNull(2, java.sql.Types.VARCHAR);
|
||||
else stmt.setString(2, senderInboxName);
|
||||
|
||||
if (relatedMessageId == null) stmt.setLong(3, -1);
|
||||
else stmt.setLong(3, relatedMessageId);
|
||||
// Translate null to -1, as 0 is a valid id
|
||||
stmt.setLong(3, Objects.requireNonNullElse(relatedMessageId, -1L));
|
||||
|
||||
stmt.setString(4, function);
|
||||
stmt.setString(5, payload);
|
||||
|
Loading…
Reference in New Issue
Block a user