Skip to content

Commit

Permalink
Merge pull request #2331 from shuhaib-aot/Bugfix/process-history-bugs
Browse files Browse the repository at this point in the history
Fixed process history bugs
  • Loading branch information
arun-s-aot authored Nov 6, 2024
2 parents 3578460 + c018800 commit ece8b6d
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 179 deletions.
196 changes: 196 additions & 0 deletions forms-flow-web/package-lock.json

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

1 change: 1 addition & 0 deletions forms-flow-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"react-i18next": "^11.15.3",
"react-js-pagination": "^3.0.3",
"react-loading-overlay-ts": "^1.0.5",
"react-query": "^3.39.3",
"react-redux": "^7.2.4",
"react-router-dom": "^5.1.2",
"react-scripts": "^5.0.1",
Expand Down
10 changes: 5 additions & 5 deletions forms-flow-web/src/apiManager/services/processServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,16 +562,16 @@ export const deleteFormProcessMapper = (mapperId, ...rest) => {
};
};

export const getProcessHistory = (process_key, page = null, limit = null) => {
let url = `${API.GET_PROCESSES_DETAILS}/${process_key}/versions`;
if (page !== null && limit !== null) {
export const getProcessHistory = ({parentProcessKey, page = null, limit = null}) => {
let url = `${API.GET_PROCESSES_DETAILS}/${parentProcessKey}/versions`;
if (page && limit) {
url += `?pageNo=${page}&limit=${limit}`;
}
return RequestService.httpGETRequest(url);
};

export const fetchRevertingProcessData = (process_Id) => {
let url = `${API.GET_PROCESSES_DETAILS}/${process_Id}`;
export const fetchRevertingProcessData = (processId) => {
let url = `${API.GET_PROCESSES_DETAILS}/${processId}`;
return RequestService.httpGETRequest(url);
};

Expand Down
Loading

0 comments on commit ece8b6d

Please sign in to comment.