Commit 99fd0da9 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Restore 'return' in pg trigger script

parent da842e76
...@@ -51,7 +51,7 @@ triggerSearchUpdate = execPGSQuery query ( toDBid NodeDocument ...@@ -51,7 +51,7 @@ triggerSearchUpdate = execPGSQuery query ( toDBid NodeDocument
ELSE ELSE
new.search := to_tsvector( 'english' , new.hyperdata::jsonb ); new.search := to_tsvector( 'english' , new.hyperdata::jsonb );
END IF; END IF;
pure new; return new;
end end
$$ LANGUAGE plpgsql; $$ LANGUAGE plpgsql;
......
...@@ -44,7 +44,7 @@ tests = sequential $ aroundAll withTestDBAndPort $ do ...@@ -44,7 +44,7 @@ tests = sequential $ aroundAll withTestDBAndPort $ do
let version_api = client (Proxy :: Proxy (MkGargAPI (GargAPIVersion GargVersion))) let version_api = client (Proxy :: Proxy (MkGargAPI (GargAPIVersion GargVersion)))
it "requires no auth and returns the current version" $ \((_testEnv, port), _) -> do it "requires no auth and returns the current version" $ \((_testEnv, port), _) -> do
result <- runClientM version_api (clientEnv port) result <- runClientM version_api (clientEnv port)
result `shouldBe` (Right "0.0.6.9.9.7.7") result `shouldBe` (Right "0.0.6.9.9.7.9")
describe "POST /api/v1.0/auth" $ do describe "POST /api/v1.0/auth" $ do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment