chore(oauth2): fix DEVELOPMENT imports
This commit is contained in:
parent
aa6406f949
commit
22e57dc075
@ -127,6 +127,11 @@ import qualified System.Clock as Clock
|
|||||||
|
|
||||||
import Utils.Avs
|
import Utils.Avs
|
||||||
|
|
||||||
|
#ifdef DEVELOPMENT
|
||||||
|
import Data.Maybe (fromJust)
|
||||||
|
import Auth.OAuth2 (azureMockServer)
|
||||||
|
#endif
|
||||||
|
|
||||||
-- Import all relevant handler modules here.
|
-- Import all relevant handler modules here.
|
||||||
-- (HPack takes care to add new modules to our cabal file nowadays.)
|
-- (HPack takes care to add new modules to our cabal file nowadays.)
|
||||||
import Handler.News
|
import Handler.News
|
||||||
@ -341,7 +346,6 @@ makeFoundation appSettings''@AppSettings{..} = do
|
|||||||
appAuthKey <- clusterSetting (Proxy :: Proxy 'ClusterAuthKey) `customRunSqlPool` sqlPool
|
appAuthKey <- clusterSetting (Proxy :: Proxy 'ClusterAuthKey) `customRunSqlPool` sqlPool
|
||||||
appPersonalisedSheetFilesSeedKey <- clusterSetting (Proxy :: Proxy 'ClusterPersonalisedSheetFilesSeedKey) `customRunSqlPool` sqlPool
|
appPersonalisedSheetFilesSeedKey <- clusterSetting (Proxy :: Proxy 'ClusterPersonalisedSheetFilesSeedKey) `customRunSqlPool` sqlPool
|
||||||
|
|
||||||
-- TODO: either migrate these to Foundation.Instances, or migrate additions in Foundation.Instances here
|
|
||||||
-- TODO: use scopes from Settings
|
-- TODO: use scopes from Settings
|
||||||
#ifdef DEVELOPMENT
|
#ifdef DEVELOPMENT
|
||||||
oauth2Plugins <- liftIO $ sequence
|
oauth2Plugins <- liftIO $ sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user