Add getUnsoundBarcodes route

This commit is contained in:
2022-12-02 15:55:23 +01:00
parent b673f4dcf5
commit 1c0c1457bd
6 changed files with 90 additions and 16 deletions
+7
View File
@@ -18,6 +18,13 @@ import Jon.Garfield.Types
-- Selects
runSelect
:: (FromBackendRow Postgres (QExprToIdentity e), Projectible Postgres e)
=> Connection
-> Q Postgres db QBaseScope e
-> IO [QExprToIdentity e]
runSelect conn q = runBeamPostgresDebug putStrLn conn $ runSelectReturningList $ select q
overviewItems
:: Q Postgres GarfieldDb s (OverviewT (QExpr Postgres s), InventoryItemT (QExpr Postgres s))
overviewItems = do