Skip to content

Commit

Permalink
fix: fix coredata crash on primary course (#64) (openedx#518)
Browse files Browse the repository at this point in the history
Co-authored-by: Saeed Bashir <sbashir@2u.com>
  • Loading branch information
rnr and saeedbashir authored Sep 30, 2024
1 parent d5a55fa commit e85e970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEdX/Data/DashboardPersistence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public class DashboardPersistence: DashboardPersistenceProtocol {
// swiftlint:enable function_body_length

func clearOldEnrollmentsData() {
context.perform {[context] in
context.performAndWait {[context] in
let fetchRequest1: NSFetchRequest<NSFetchRequestResult> = CDDashboardCourse.fetchRequest()
let batchDeleteRequest1 = NSBatchDeleteRequest(fetchRequest: fetchRequest1)

Expand Down

0 comments on commit e85e970

Please sign in to comment.