Skip to content

Commit

Permalink
Merge pull request #3282 from LiteFarmOrg/patch/3.6.4.1
Browse files Browse the repository at this point in the history
Hotfix 3.6.4.1
  • Loading branch information
kathyavini authored Jun 27, 2024
2 parents 0136673 + 8c3c159 commit 820ce83
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-api",
"version": "3.6.4",
"version": "3.6.4.1",
"description": "LiteFarm API server",
"main": "./api/src/server.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (process.env.SENTRY_DSN && environment !== 'development') {
// Automatically instrument Node.js libraries and frameworks
...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(),
],
release: '3.6.4',
release: '3.6.4.1',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-webapp",
"version": "3.6.4",
"version": "3.6.4.1",
"description": "LiteFarm Web application",
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/webapp/src/containers/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ axiosWithoutInterceptors.interceptors.response.use(
return response;
},
function (error) {
if (error?.response?.status === 401) {
if (error?.response?.status === 401 && error?.config?.url?.startsWith(url)) {
if (localStorage.getItem('id_token')) {
logout();
}
} else if (error?.response?.status === 403) {
} else if (error?.response?.status === 403 && error?.config?.url?.startsWith(url)) {
store?.dispatch(handle403());
}
return Promise.reject(error);
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
release: '3.6.4',
release: '3.6.4.1',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down

0 comments on commit 820ce83

Please sign in to comment.