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

@@ -1,19 +1,15 @@
#=============MAIN=============
spring.application.name=letsmeet
#=============SERVER=============
server.port=5001
#=============SECURITY=============
sec.cors.authorizedHots=*
sec.cors.authorizedMethods=GET,POST,PUT,DELETE,OPTION
sec.cors.authorizedHeader=Authorization,Content-type
#=============DATABASE=============
spring.datasource.url=jdbc:${DB_URL}
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASSWORD}
spring.jpa.database-platform=org.hibernate.dialect.MariaDBDialect
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update

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){