Fixed a bug

This commit is contained in:
Laurent
2025-03-21 20:20:58 +01:00
parent be5e86c10d
commit 0c5851b146
2 changed files with 2 additions and 7 deletions

View File

@@ -96,9 +96,8 @@ export const eventCreationStore = defineStore('eventStore', {
async createEvent() : Promise<string> {
try {
let event = mapToDto(this.event);
console.log(JSON.stringify(event));
//let res = await requests.createEvent(event)
let res = "";
console.log(event)
let res = await requests.createEvent(event)
if(res) return res;
throw new Error("Unable to create event");
} catch (error){