MOBILE-2915 forum: Fix discussion sync

main
Dani Palou 2019-03-27 18:03:36 +01:00
parent 5c4fcaf09e
commit 8b5b33ec82
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ export class AddonModForumDiscussionPage implements OnDestroy {
protected syncDiscussion(showErrors: boolean): Promise<any> {
const promises = [];
promises.push(this.forumSync.syncDiscussionReplies(this.forumId, this.discussionId).then((result) => {
promises.push(this.forumSync.syncDiscussionReplies(this.discussionId).then((result) => {
if (result.warnings && result.warnings.length) {
this.domUtils.showErrorModal(result.warnings[0]);
}