Make FindByAnalytics count the same as FindByQuery. (#1334)

Closes #1331.
This commit is contained in:
Michael Reiche
2022-02-09 21:07:09 -08:00
committed by Michael Reiche
parent 4feda42a59
commit e3fed4c7d6

View File

@@ -149,7 +149,8 @@ public class ReactiveFindByAnalyticsOperationSupport implements ReactiveFindByAn
} else {
return throwable;
}
}).flatMapMany(ReactiveAnalyticsResult::rowsAsObject).map(row -> row.getLong("__count")).next();
}).flatMapMany(ReactiveAnalyticsResult::rowsAsObject)
.map(row -> row.getLong(row.getNames().iterator().next())).next();
});
}