diff --git a/config/config.json.ctmpl b/config/config.json.ctmpl index 292cf83dd6..2958e3f282 100644 --- a/config/config.json.ctmpl +++ b/config/config.json.ctmpl @@ -54,10 +54,6 @@ {{if service "bookbrainz-elasticsearch-test"}} {{with index (service "bookbrainz-elasticsearch-test") 0}} "node": "http://{{.Address}}:{{.Port}}", - "auth": { - "username": "elastic", - "password": "changeme" - }, "requestTimeout": 30000 {{end}} {{end}} @@ -65,10 +61,6 @@ {{if service "bookbrainz-elasticsearch"}} {{with index (service "bookbrainz-elasticsearch") 0}} "node": "http://{{.Address}}:{{.Port}}", - "auth": { - "username": "elastic", - "password": "changeme" - }, "requestTimeout": 30000 {{end}} {{end}} diff --git a/config/config.json.example b/config/config.json.example index d467dd7b26..ae0ea80505 100644 --- a/config/config.json.example +++ b/config/config.json.example @@ -34,10 +34,6 @@ }, "search": { "node": "http://elasticsearch:9200", - "auth": { - "username": "elastic", - "password": "changeme" - }, "requestTimeout": 30000 }, "mailConfig" :{ diff --git a/config/config.local.json.example b/config/config.local.json.example index 4af1228803..8f5b67b8d4 100644 --- a/config/config.local.json.example +++ b/config/config.local.json.example @@ -34,10 +34,6 @@ }, "search": { "node": "http://localhost:9200", - "auth": { - "username": "elastic", - "password": "changeme" - }, "requestTimeout": 60000 } } diff --git a/src/api/app.js b/src/api/app.js index c1407a7714..b8d04197a0 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -69,7 +69,6 @@ mainRouter.use((req, res) => { // https://github.com/elastic/elasticsearch-js/issues/33 search.init(app.locals.orm, Object.assign({}, config.search)); - const DEFAULT_API_PORT = 9098; app.set('port', process.env.PORT || DEFAULT_API_PORT); diff --git a/src/client/components/pages/entities/cbReviewModal.tsx b/src/client/components/pages/entities/cbReviewModal.tsx index 73e4154c4f..b7c7d398e3 100644 --- a/src/client/components/pages/entities/cbReviewModal.tsx +++ b/src/client/components/pages/entities/cbReviewModal.tsx @@ -503,7 +503,7 @@ class CBReviewModal extends React.Component< /* executes getAccessToken() only in a browser to avoid unnecessary server-side calls during component mounting */ componentDidMount = async () => { - if (typeof window !== "undefined") { + if (typeof window !== 'undefined') { this.accessToken = await this.getAccessToken(); } }; diff --git a/src/client/entity-editor/entity-editor.tsx b/src/client/entity-editor/entity-editor.tsx index 317b6e32ba..0f0a83366a 100644 --- a/src/client/entity-editor/entity-editor.tsx +++ b/src/client/entity-editor/entity-editor.tsx @@ -84,10 +84,10 @@ const EntityEditor = (props: Props) => { window.onbeforeunload = handleUrlChange; }, [handleUrlChange]); - if(entity){ - entityURL = getEntityUrl(entity); + if (entity) { + entityURL = getEntityUrl(entity); } - + return (