diff --git a/src/app/core/services/api.service.ts b/src/app/core/services/api.service.ts index 04389258..bcd60206 100644 --- a/src/app/core/services/api.service.ts +++ b/src/app/core/services/api.service.ts @@ -141,9 +141,9 @@ export class ApiService { } } - public async createComment(slug: string, comment: Comment | CommentDTO): Promise { + public createComment(slug: string, comment: Comment | CommentDTO): Promise { try { - return await this.axiosInstance.post(`${this.baseHref}${this.commentsEndpoint}/${slug}`, comment); + return this.axiosInstance.post(`${this.baseHref}/comments/poll/${slug}`, comment); } catch (error) { ApiService.handleError(error); } diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index 1a63bcdb..31d1bb95 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -50,7 +50,7 @@ export class PollService implements Resolve { public showDateInterval = false; public allowSeveralHours = false; public richTextMode = false; - public mode_calendar = true; + public mode_calendar = false; public calendar: Date[] = [new Date()]; public disabled_dates: Date[] = [];