mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
fix bug wto show multiple versions in metadata
This commit is contained in:
committed by
Keagan McClelland
parent
289e5c5b1d
commit
d8143067b2
@@ -1,5 +1,6 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
{-# LANGUAGE DeriveGeneric #-}
|
||||
|
||||
module Lib.Types.Category where
|
||||
|
||||
@@ -16,7 +17,7 @@ data CategoryTitle = FEATURED
|
||||
| MESSAGING
|
||||
| SOCIAL
|
||||
| ALTCOIN
|
||||
deriving (Eq, Enum, Show, Read)
|
||||
deriving (Eq, Enum, Show, Read, Generic)
|
||||
instance PersistField CategoryTitle where
|
||||
fromPersistValue = fromPersistValueJSON
|
||||
toPersistValue = toPersistValueJSON
|
||||
@@ -46,3 +47,4 @@ instance ToContent CategoryTitle where
|
||||
toContent = toContent . toJSON
|
||||
instance ToTypedContent CategoryTitle where
|
||||
toTypedContent = toTypedContent . toJSON
|
||||
instance Hashable CategoryTitle
|
||||
|
||||
Reference in New Issue
Block a user