Skip to content

Commit 7022743

Browse files
committed
Fix typo in aggregate unified endpoint
bugfix/aggregate-unified-endpoint-is-hard-coded-to-use-sum
1 parent 742aa43 commit 7022743

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension CoreDataRepository {
3434
return await count(predicate: predicate, entityDesc: entityDesc, as: valueType)
3535
default:
3636
return await Self.send(
37-
function: .sum,
37+
function: function,
3838
context: context,
3939
predicate: predicate,
4040
entityDesc: entityDesc,

0 commit comments

Comments
 (0)