mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-15 08:22:43 +00:00
quick fix based on review, textBin
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user