on master help sign in
CHanged error on channel update.
f867103iko
denis/src/Server/API/Channels.hs+1−1
@@ -54,7 +54,7 @@ createChannelApi uId req = maybeNotFound . runQnotFound $ createNewChannel uId r
54
54
55updateChannelApi :: UserId -> NamedChannel UserId -> App NoContent
55updateChannelApi :: UserId -> NamedChannel UserId -> App NoContent
56updateChannelApi uId req = do
56updateChannelApi uId req = do
57− runQnotFound $ updateChannel uId req
57+ runQ err500 $ updateChannel uId req
58 return NoContent
58 return NoContent
59
59
60deleteChannelApi :: UserId -> NamedChannelId -> App NoContent
60deleteChannelApi :: UserId -> NamedChannelId -> App NoContent