From c5f9758ab8a3faff1c3f296a4dd84e40dcb3b6d4 Mon Sep 17 00:00:00 2001 From: RyosukeCla Date: Wed, 20 Mar 2024 20:20:23 +0900 Subject: [PATCH] [ios] fix a critical bug: Update database.swift to use ExperimentHistoryEntity instead of UserEventEntity --- ios/Nativebrik/Nativebrik/data/database/database.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Nativebrik/Nativebrik/data/database/database.swift b/ios/Nativebrik/Nativebrik/data/database/database.swift index e9a2e5b..0af538e 100644 --- a/ios/Nativebrik/Nativebrik/data/database/database.swift +++ b/ios/Nativebrik/Nativebrik/data/database/database.swift @@ -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