File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ export class Neo4j implements IDB {
3636 // this.baseUrl = "http://neo4j:7474";
3737 // this.username = "neo4j";
3838 // this.password = "strongpasswordsafe123";
39- this . baseUrl = "http://3.89.86.217 :7474" ;
39+ this . baseUrl = "http://34.230.47.155 :7474" ;
4040 this . username = "neo4j" ;
41- this . password = "errors-fourths-seeds " ;
41+ this . password = "talk-runway-pad " ;
4242 }
4343
4444 private async sendRequest (
@@ -58,12 +58,14 @@ export class Neo4j implements IDB {
5858 headers,
5959 data : data ,
6060 } ) ;
61+
6162 if ( ! res || ! [ 200 , 201 ] . includes ( res . statusCode ) || ! res . content ) {
62- console . log ( res ) ;
6363 return null ;
6464 }
65+ const parsedContent = JSON . parse ( res . content ) ;
66+ if ( parsedContent . errors . length ) return null ;
6567
66- return JSON . parse ( res . content ) ;
68+ return parsedContent ;
6769 }
6870
6971 async verifyConnectivity ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments