Skip to content

Commit

Permalink
Fixed crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Mar 6, 2020
1 parent 626a27d commit 9a17f8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TurboHaskell/QueryBuilder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ instance (model ~ GetModelById (Id' model'), HasField "id" model id, id ~ Id' mo
type FetchResult (Maybe (Id' model')) model = [model]
{-# INLINE fetch #-}
fetch (Just a) = genericFetchId a
fetch Nothing = return []
{-# INLINE fetchOneOrNothing #-}
fetchOneOrNothing Nothing = return Nothing
fetchOneOrNothing (Just a) = genericfetchIdOneOrNothing a
Expand Down

0 comments on commit 9a17f8c

Please sign in to comment.