Skip to content

Commit

Permalink
Merge pull request #3638 from LiteFarmOrg/patch/3.7.3
Browse files Browse the repository at this point in the history
Patch 3.7.3
  • Loading branch information
antsgar authored Dec 22, 2024
2 parents eb7b716 + cb5aebd commit 8d57e44
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions 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.7.2",
"version": "3.7.3",
"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.7.2',
release: '3.7.3',
// 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.7.2",
"version": "3.7.3",
"description": "LiteFarm Web application",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/containers/Task/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ export function* createTaskSaga({ payload }) {
const header = getHeader(user_id, farm_id);
const isCustomTask = !!task_farm_id;
const isHarvest = task_translation_key === 'HARVEST_TASK';
const endpoint = getEndpoint(isCustomTask, task_translation_key);
const endpoint = getEndpoint(isCustomTask, task_translation_key, true);
try {
const managementPlanWithCurrentLocationEntities = yield select(
managementPlanWithCurrentLocationEntitiesSelector,
Expand Down
4 changes: 2 additions & 2 deletions packages/webapp/src/containers/Task/sagaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
import { parseInventoryId } from '../../util/animal';
import { getPostTaskBody } from './saga';

export const getEndpoint = (isCustomTask, taskTranslationKey) => {
export const getEndpoint = (isCustomTask, taskTranslationKey, isCreatingTask = false) => {
if (isCustomTask) {
return 'custom_task';
}
const endpoints = {
HARVEST_TASK: 'harvest_task',
HARVEST_TASK: isCreatingTask ? 'harvest_tasks' : 'harvest_task',
MOVEMENT_TASK: 'animal_movement_task',
};
return endpoints[taskTranslationKey] || taskTranslationKey.toLowerCase();
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 @@ -87,7 +87,7 @@ if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
release: '3.7.2',
release: '3.7.3',
// 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 8d57e44

Please sign in to comment.