fix #453 by sending the request to the db (instead of using the cached data)

This commit is contained in:
Ruslan Talpa
2016-01-11 10:17:34 +02:00
parent c93c4d8c30
commit 88d98d6d62
2 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ app dbStructure conf reqBody req =
else return notFound
(ActionRead, TargetRoot, Nothing) -> do
body <- encode <$> accessibleTables (filter ((== cs schema) . tableSchema) (dbTables dbStructure))
body <- encode <$> accessibleTables (cs schema)
return $ responseLBS status200 [jsonH] $ cs body
(ActionUnknown _, _, _) -> return notFound