0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-15 10:32:45 +00:00

quick fix based on review, textBin

This commit is contained in:
Víctor Losada Hernández
2024-01-24 23:24:51 +01:00
parent 8b6517eb8d
commit d2306b70a9

View File

@@ -29,7 +29,7 @@ const mw = {
/* Search for brews that are older than 3 days and that are shorter than a tweet */ /* Search for brews that are older than 3 days and that are shorter than a tweet */
const junkBrewQuery = HomebrewModel.find({ const junkBrewQuery = HomebrewModel.find({
text: { $exists: true, $not: { $type: 10 } }, // $type 10 corresponds to null/undefined '$where' : 'this.textBin.length < 140',
createdAt: { createdAt: {
$lt: Moment().subtract(30, 'days').toDate() $lt: Moment().subtract(30, 'days').toDate()
} }