Skip to content

Commit

Permalink
Merge pull request #17 from plaidev/android-1
Browse files Browse the repository at this point in the history
[ios] fix a critical bug: Update database.swift to use ExperimentHist…
  • Loading branch information
RyosukeCla authored Mar 20, 2024
2 parents 08b48dd + c5f9758 commit ed52d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Nativebrik/Nativebrik/data/database/database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DatabaseRepositoryImpl: DatabaseRepository {
}

private func experimentHisotryCountAfter(experimentId: String, after: Date) -> Int {
let request = UserEventEntity.fetchRequest()
let request = ExperimentHistoryEntity.fetchRequest()
request.predicate = NSPredicate(format: "experimentId = %@ && timestamp >= %@", experimentId, after as NSDate)

let context = self.persistentContainer.viewContext
Expand Down

0 comments on commit ed52d21

Please sign in to comment.