Fix variable name
This commit is contained in:
parent
6f016e1283
commit
7a86d5da4c
@ -36,11 +36,11 @@ insertChannel username channel = do
|
|||||||
return userId
|
return userId
|
||||||
|
|
||||||
booksChannels :: (MonadMask m, MonadIO m) => BookID -> SeldaT m [Channel]
|
booksChannels :: (MonadMask m, MonadIO m) => BookID -> SeldaT m [Channel]
|
||||||
booksChannels contentHash = fromRels <$> query q
|
booksChannels bookId = fromRels <$> query q
|
||||||
where
|
where
|
||||||
q = do
|
q = do
|
||||||
channelId :*: contentHash' <- select (gen bookChannels)
|
channelId :*: bookId' <- select (gen bookChannels)
|
||||||
ch@(channelId' :*: _) <- select (gen channels)
|
ch@(channelId' :*: _) <- select (gen channels)
|
||||||
restrict (channelId .== channelId')
|
restrict (channelId .== channelId')
|
||||||
restrict (contentHash' .== literal contentHash)
|
restrict (bookId' .== literal bookId)
|
||||||
return ch
|
return ch
|
||||||
|
Loading…
Reference in New Issue
Block a user