We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5541222 commit 5918c16Copy full SHA for 5918c16
Sources/PostgreSQL/Message/PostgreSQLNotificationResponse.swift
@@ -7,6 +7,8 @@ struct PostgreSQLNotificationResponse: Decodable {
7
let container = try decoder.singleValueContainer()
8
_ = try container.decode(Int32.self) // message length
9
_ = try container.decode(Int32.self) // process id of message
10
- message = try container.decode(String.self)
+ let channelId = try container.decode(String.self)
11
+ let message = try? container.decode(String.self)
12
+ self.message = message ?? channelId
13
}
14
0 commit comments