Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 29, 2023
1 parent 00addc3 commit 6564c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Pulse/LoggerStore/LoggerStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public final class LoggerStore: @unchecked Sendable {
let latestSession = try? self.viewContext.first(LoggerSessionEntity.self) {
$0.sortDescriptors = [NSSortDescriptor(keyPath: \LoggerSessionEntity.createdAt, ascending: false)]
}
if let session = latestSession {
if let session = latestSession, manifest.version > Version(3, 3, 0) {
self.session = .init(id: session.id, startDate: session.createdAt)
}
}
Expand Down

0 comments on commit 6564c70

Please sign in to comment.