As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
why can't I execute my find() lookup when I have a record in the collection.
A
Antonio Mercado
started a topic
almost 10 years ago
Below is my code. When executed on empty table i see "3" & "4" in console but when executed after collection is populated I never see "4" (not even an error is populated). my collection is set to private with ACL of r/w for both userId1 & userId2. Where is the problem here? This used to work at one point.
Antonio Mercado
modules.logger.info('3');
var userId1 = request.body.user;
var userId2 = request.body.owner;
var query = {};
query["$or"] = new Array();
query["$or"].push({user: userId1, owner: userId2});
query["$or"].push({user: userId2, owner: userId1});
modules.collectionAccess.collection('user-relationships').find(query, function(err, doc) {
modules.logger.info('4');
....
});