Skip to content

Commit caf60c0

Browse files
authored
Merge branch 'dev' into issue-151-migrations
2 parents fb757b6 + 2be53b6 commit caf60c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

primitives/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub mod postgres {
208208
fn from_sql(ty: &Type, raw: &'a [u8]) -> Result<Self, Box<dyn Error + Sync + Send>> {
209209
let str_slice = <&str as FromSql>::from_sql(ty, raw)?;
210210

211-
Ok(ChannelId::from_hex(str_slice)?)
211+
Ok(ChannelId::from_hex(&str_slice[2..])?)
212212
}
213213

214214
fn accepts(ty: &Type) -> bool {

0 commit comments

Comments
 (0)