File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ listProjectsByUserWithMetadata callerUserId projectOwnerUserId = do
289289listProjectsFromCatalogWithMetadata ::
290290 Maybe UserId ->
291291 -- | (project, numFavs, isFavedByCaller)
292- PG. Transaction e (Map CategoryName [( Project , FavData , ProjectOwner )] )
292+ PG. Transaction e (Map CategoryName ( NonEmpty ( Project , FavData , ProjectOwner )) )
293293listProjectsFromCatalogWithMetadata callerUserId = do
294294 projects :: [(Project PG. :. PG. Only CategoryName PG. :. FavData PG. :. ProjectOwner )] <- PG. queryListRows sql
295295 projects
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ instance Aeson.FromJSON FavProjectRequest where
377377
378378data CatalogCategory = CatalogCategory
379379 { name :: CategoryName ,
380- projects :: [ APIProject :++ FavData ]
380+ projects :: NonEmpty ( APIProject :++ FavData )
381381 }
382382 deriving (Show )
383383
You can’t perform that action at this time.
0 commit comments