Skip to content

Commit

Permalink
switch to consoleLog in crudActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Jan 14, 2024
1 parent 9e97c0d commit 19b0669
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/actions/crudActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ export async function loadFile(
}
try {
//when clicking "pdf" button on detail page.
console.log("L 33 crudActions / loadFile : route :", route);//example: "tours/1971/pdf"
console.log("L 34 crudActions / loadFile : data :", data, true);//example: {id: 1971, connection_id: 957752, connection_return_id: 957752, connection_return_ids: Array(1), connectionDate: '2024-01-11T00:00:00+01:00'}
console.log("L 36 crudActions / loadFile : responseType :", responseType); //'buffer'

if(process.env.NODE_ENV !== "production"){
consoleLog("L 33 crudActions / loadFile : route :", route);//example: "tours/1971/pdf"
consoleLog("L 34 crudActions / loadFile : data :", data, true);//example: {id: 1971, connection_id: 957752, connection_return_id: 957752, connection_return_ids: Array(1), connectionDate: '2024-01-11T00:00:00+01:00'}
consoleLog("L 36 crudActions / loadFile : responseType :", responseType); //'buffer'
}
let res = await axios.get(route, {
// data: {},
data: data,
Expand Down

0 comments on commit 19b0669

Please sign in to comment.