Skip to content

Commit

Permalink
maybe fix heatmap server issue
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Jan 19, 2024
1 parent c21e2a2 commit 74d60e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/js/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export async function createPin(pin) {
"tenant": TENANT
}
});

console.log(response);

if (!response.ok) throw new Error(`HTTP error! status: ${response.status}, ${response.statusText}`);
const createdPin = await response.json();
Expand All @@ -65,7 +67,7 @@ export async function createPin(pin) {
*/
export async function getHeatmapData() {
try {
const response = await fetch(`${BACKEND_URL}/heatmap`, {
const response = await fetch(`${BACKEND_URL}/heatmap/`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion frontend/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.0.3

0 comments on commit 74d60e0

Please sign in to comment.