From 8b499bbb985eb2e5ba947b8752990b245da7a855 Mon Sep 17 00:00:00 2001 From: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> Date: Tue, 15 Feb 2022 12:11:41 +0100 Subject: [PATCH] post comment api url change Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> --- src/app/core/services/api.service.ts | 4 ++-- src/app/core/services/poll.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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[] = [];