codeconsole commented on code in PR #15744:
URL: https://github.com/apache/grails-core/pull/15744#discussion_r3521050914
##########
grails-data-mongodb/core/src/main/groovy/org/grails/datastore/gorm/mongo/api/MongoStaticApi.groovy:
##########
@@ -71,9 +71,9 @@ class MongoStaticApi<D> extends GormStaticApi<D> implements
MongoAllOperations<D
withSession { AbstractMongoSession session ->
def entity =
session.mappingContext.getPersistentEntity(persistentClass.name)
filter = wrapFilterWithMultiTenancy(filter)
- return session.getCollection(entity)
+ MongoCollection<D> collection = session.getCollection(entity)
Review Comment:
Fixed in 134146a4e6 — renamed to `mongoSession` throughout. Went with
`mongoSession` since `MongoQuery` can't use `session` (the base `Query` class
already declares a `Session session` field).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]