Update: User.ad console.log interests

This commit is contained in:
Yûki VACHOT 2021-12-15 01:55:57 +01:00
parent bec2c5848b
commit a6b1828c4b

View file

@ -418,7 +418,7 @@ exports.ad = (req, res) => {
match = {$match: {isVisible: true, isActive: true}};
pick = {$sample: {size: parseInt(quantity, 10)}};
}
console.log(match, pick);
console.log(match, pick, interests);
Ad.aggregate([
match,
pick