diff --git a/apps/meteor/app/seeking-alpha/terms-of-use-violations/index.ts b/apps/meteor/app/seeking-alpha/terms-of-use-violations/index.ts index d81771c057abb..1c460c7a1c6ac 100644 --- a/apps/meteor/app/seeking-alpha/terms-of-use-violations/index.ts +++ b/apps/meteor/app/seeking-alpha/terms-of-use-violations/index.ts @@ -66,11 +66,11 @@ async function perform() { } } -async function aggregateMessagesContainingKeyword(keyword, date) { +function aggregateMessagesContainingKeyword(keyword, date) { const matchDoc = buildMongoMatchDoc(keyword, date); const pipeline = buildMongoPipelineArray(matchDoc); - return await Messages.col.aggregate( + return Messages.col.aggregate( pipeline, { readPreference: readSecondaryPreferred() } ).toArray();