diff --git a/js/src/forum/models/Poll.ts b/js/src/forum/models/Poll.ts index b209d386..e4f41bf8 100755 --- a/js/src/forum/models/Poll.ts +++ b/js/src/forum/models/Poll.ts @@ -72,6 +72,7 @@ export default class Poll extends Model { } apiEndpoint() { + /** @ts-ignore */ return `/fof/polls${this.exists ? `/${this.data.id}` : ''}`; } } diff --git a/js/src/forum/models/PollOption.ts b/js/src/forum/models/PollOption.ts index e427a33d..d83bf08e 100755 --- a/js/src/forum/models/PollOption.ts +++ b/js/src/forum/models/PollOption.ts @@ -24,6 +24,7 @@ export default class PollOption extends Model { } apiEndpoint() { + /** @ts-ignore */ return `/fof/polls/answers${this.exists ? `/${this.data.id}` : ''}`; } }