diff --git a/common/src/jvmMain/kotlin/com/saveourtool/common/storage/StorageInitializer.kt b/common/src/jvmMain/kotlin/com/saveourtool/common/storage/StorageInitializer.kt index a6653104b9..ae031fd6f8 100644 --- a/common/src/jvmMain/kotlin/com/saveourtool/common/storage/StorageInitializer.kt +++ b/common/src/jvmMain/kotlin/com/saveourtool/common/storage/StorageInitializer.kt @@ -57,7 +57,7 @@ class StorageInitializer( } doInitReactively() .map { true } // doInit worked - .defaultIfEmpty(false) // doInit is emtpy + .defaultIfEmpty(false) // doInit is empty .doOnNext { wasDoInitCalled -> require(isInitFinishedCount.decrementAndGet() >= 0) { "Init method cannot be called more than 1 time. Initialization $storageName already finished by another run" diff --git a/frontend-common/README.md b/frontend-common/README.md index 2b58f82104..a55ebc8923 100644 --- a/frontend-common/README.md +++ b/frontend-common/README.md @@ -97,7 +97,7 @@ config.devServer = Object.assign( `historyApiFallback` makes `webpack-dev-server` return `index.html` in case of `404 Not Found`. Sometimes it is useful to add authorization headers when proxying to some Spring services e.g. `save-backend`. -It can be done with setting `onPorxyReq`: +It can be done with setting `onProxyReq`: ```javascript onProxyReq: (proxyReq, req, res) => { proxyReq.setHeader("X-Authorization-Id", "1"); @@ -145,4 +145,4 @@ Thus, we add `Authorization` and `X-Authorization-Source` headers that correspon * Avoid potential name conflicts between local users (those authenticated using _HTTP Basic Auth_) and users created via an external _OAuth_ provider. For example, if you have a local user named `torvalds`, don't try to authenticate - as a [_GitHub_ user with the same name](https://github.com/torvalds). \ No newline at end of file + as a [_GitHub_ user with the same name](https://github.com/torvalds). diff --git a/save-frontend/README.md b/save-frontend/README.md index 786c923e1f..232a67f09d 100644 --- a/save-frontend/README.md +++ b/save-frontend/README.md @@ -106,7 +106,7 @@ config.devServer = Object.assign( `historyApiFallback` makes `webpack-dev-server` return `index.html` in case of `404 Not Found`. Sometimes it is useful to add authorization headers when proxying to some Spring services e.g. `save-backend`. -It can be done with setting `onPorxyReq`: +It can be done with setting `onProxyReq`: ```javascript onProxyReq: (proxyReq, req, res) => { proxyReq.setHeader("X-Authorization-Id", "1");