|
@@ -110,6 +110,7 @@ export const aggregatePipelineToIndex = (
|
|
|
'revision.body': {
|
|
'revision.body': {
|
|
|
$cond: {
|
|
$cond: {
|
|
|
if: { $lte: ['$bodyLength', maxBodyLengthToIndex] },
|
|
if: { $lte: ['$bodyLength', maxBodyLengthToIndex] },
|
|
|
|
|
+ // biome-ignore lint/suspicious/noThenProperty: ignore
|
|
|
then: '$revision.body',
|
|
then: '$revision.body',
|
|
|
else: '',
|
|
else: '',
|
|
|
},
|
|
},
|
|
@@ -121,6 +122,7 @@ export const aggregatePipelineToIndex = (
|
|
|
in: {
|
|
in: {
|
|
|
$cond: {
|
|
$cond: {
|
|
|
if: { $lte: ['$$comment.commentLength', maxBodyLengthToIndex] },
|
|
if: { $lte: ['$$comment.commentLength', maxBodyLengthToIndex] },
|
|
|
|
|
+ // biome-ignore lint/suspicious/noThenProperty: ignore
|
|
|
then: '$$comment.comment',
|
|
then: '$$comment.comment',
|
|
|
else: '',
|
|
else: '',
|
|
|
},
|
|
},
|