Skip to content

Commit

Permalink
sending geo on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Nov 25, 2024
1 parent a6487a3 commit eb82902
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/modules/handleEventsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ export async function handleCreateEventSubmit(event, pageToCome, navigate) {
event_start: dateStart,
event_end: dateEnd,
category_id: categoryId,
latitude: latitude || null,
longitude: longitude || null,
zoom: zoom || null,
Latitude: latitude,
Longitude: longitude,
zoom: zoom,
};

const json = JSON.stringify(userData);
Expand All @@ -177,6 +177,7 @@ export async function handleCreateEventSubmit(event, pageToCome, navigate) {
};
const path = '/events';
const response = await api.post(path, request);
console.log(response);
// If response is not OK, throw error
if (!response.ok) {
throw new Error(data.message);
Expand Down

0 comments on commit eb82902

Please sign in to comment.