Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions green_app/app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "external-pdf-importer",
"name": "green-app-debug",
"type": "web",
"version": "2024.07.11.12.52.53",
"display_name": "Green App",
"description": "External PDF Importer",
"version": "2024.08.09.1723212525877",
"display_name": "Green App Debug",
"description": "Green App Debug",
"displayName": "",
"icon": "fas fa-music",
"module": {
Expand All @@ -21,4 +21,4 @@
}
}
}
}
}
6 changes: 2 additions & 4 deletions green_app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ document.addEventListener('DOMContentLoaded', function () {
generateButton.disabled = true
loadingIndicator.classList.remove('hidden')

fetch(localStorage.greenAppLocalBackend
? 'http://localhost:3123/'
: 'https://analytics.pitcher.com/test/green_helloworld/generate_pdf.php', {
fetch('http://localhost:3123/', {
method: 'POST',
body: new URLSearchParams({
userName,
clientName,
token: window.env.pitcher.access_token,
instanceId: window.env.pitcher.instance.id,
folderId: '01J1N752B5W1JTS87721R6VSKW',
folderId: '01J4VQDME5ZB0PWC7VZ1VVSMTV',
}),
})
.then((response) => response.text())
Expand Down
2 changes: 1 addition & 1 deletion green_app_backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ app.post('/', async (req, res) => {
res.status(400).send('Invalid input.')
}
} catch (error) {
console.error('Error processing request:', error)
console.error('Error processing request:', error.response ? error.response.data : error.message)
res.status(500).send('Internal server error.')
}
})
Expand Down