MOBILE-3320 forum: Fix migration typos

main
Noel De Martin 2021-06-07 17:21:54 +02:00
parent ea899125eb
commit 8ef7c7463b
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ export class AddonModForumDiscussionPage implements OnInit, AfterViewInit, OnDes
offlineReplies.push(reply);
// Disable reply of the parent. Reply in offline to the same post is not allowed, edit instead.
posts[reply.parentid!].capabilities.reply = false;
onlinePostsMap[reply.parentid!].capabilities.reply = false;
return;
}),

View File

@ -136,7 +136,7 @@ export class CoreCourseActivityPrefetchHandlerBase extends CoreCourseModulePrefe
await this.setDownloaded(module.id, siteId, extra);
} catch (error) {
// Error prefetching, go back to previous status and reject the promise.
return this.setPreviousStatus(module.id, siteId);
await this.setPreviousStatus(module.id, siteId);
throw error;
}