From d2306b70a9d85be5f61193052853e233e14e1844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Wed, 24 Jan 2024 23:24:51 +0100 Subject: [PATCH] quick fix based on review, textBin --- server/admin.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/admin.api.js b/server/admin.api.js index 97d299957..3ab934c34 100644 --- a/server/admin.api.js +++ b/server/admin.api.js @@ -29,7 +29,7 @@ const mw = { /* Search for brews that are older than 3 days and that are shorter than a tweet */ const junkBrewQuery = HomebrewModel.find({ - text: { $exists: true, $not: { $type: 10 } }, // $type 10 corresponds to null/undefined + '$where' : 'this.textBin.length < 140', createdAt: { $lt: Moment().subtract(30, 'days').toDate() }