Update changelog, remove debugging

This commit is contained in:
Joe Nelson
2015-05-12 10:55:51 -07:00
parent 709e70561f
commit e35ad0f340
2 changed files with 5 additions and 4 deletions
+4 -1
View File
@@ -5,7 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## unreleased
- Allow nested objects and arrays in JSON post for jsonb columns
- Return 404 if no records updated by PATCH
- Return range headers in PATCH
- Return PATCHed resources if header "Prefer: return=representation"
- Allow nested objects and arrays in JSON post for jsonb columns
## [0.2.8.0] - 2015-04-17
### Added
+1 -3
View File
@@ -39,8 +39,6 @@ import PgQuery
import RangeQuery
import PgStructure
import Debug.Trace
app :: Text -> BL.ByteString -> Request -> H.Tx P.Postgres s Response
app v1schema reqBody req =
case (path, verb) of
@@ -173,7 +171,7 @@ app v1schema reqBody req =
"select count(t), array_to_json(array_agg(row_to_json(t)))::character varying"
V.empty True
row <- H.maybeEx $ traceShow (B.stmtTemplate patch) patch
row <- H.maybeEx patch
let (queryTotal, body) =
fromMaybe (0 :: Int, Just "" :: Maybe Text) row
r = contentRangeH 0 (queryTotal-1) queryTotal