mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
make metrics specifc to apps
This commit is contained in:
@@ -97,7 +97,7 @@ getApp rootDir ext@(Extension appId) = do
|
||||
av <- runDB $ createAppVersion appKey' versionInfo
|
||||
pure (appKey', av)
|
||||
Just v -> pure (appKey', entityKey v)
|
||||
runDB $ createMetric (Just appKey) (Just versionKey) appId'
|
||||
runDB $ createMetric appKey versionKey
|
||||
sz <- liftIO $ fileSize <$> getFileStatus filePath
|
||||
addHeader "Content-Length" (show sz)
|
||||
respondSource typePlain $ CB.sourceFile filePath .| awaitForever sendChunkBS
|
||||
|
||||
Reference in New Issue
Block a user