Skip to content

Commit

Permalink
fix: use proper column label when checking payloadFormat (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 authored and MikeDombo committed Nov 14, 2023
1 parent 75c3c6f commit 0d235f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private SpoolMessage getSpoolMessageFromRs(long messageId, ResultSet rs) throws
.retain(rs.getBoolean("retain"))
.topic(rs.getString("topic"))
.payload(rs.getBytes("payload"))
.payloadFormat(rs.getObject("messageExpiryIntervalSeconds") == null
.payloadFormat(rs.getObject("payloadFormat") == null
? null : Publish.PayloadFormatIndicator.fromInt(rs.getInt("payloadFormat")))
.messageExpiryIntervalSeconds(rs.getObject("messageExpiryIntervalSeconds") == null
? null : rs.getLong("messageExpiryIntervalSeconds"))
Expand Down

0 comments on commit 0d235f7

Please sign in to comment.