Skip to content

Commit

Permalink
Tiny Observation bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoarment committed Jan 2, 2024
1 parent b298889 commit 4d222b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Blackbird/BlackbirdObservation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public final class BlackbirdModelObserver<T: BlackbirdModel> {
}

/// Set or change the single-column primary-key value to observe.
public func observe(primaryKey: Sendable? = nil) { observe(multicolumnPrimaryKey: [primaryKey]) }
public func observe(primaryKey: Sendable? = nil) { observe(multicolumnPrimaryKey: primaryKey == nil ? nil : [primaryKey]) }

/// Set or change the multi-column primary-key value to observe.
public func observe(multicolumnPrimaryKey: [Sendable]? = nil) {
Expand Down

0 comments on commit 4d222b4

Please sign in to comment.