mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 22:38:43 +00:00
lint
This commit is contained in:
+3
-3
@@ -34,21 +34,21 @@ const tagConditions = (tagsAnd, tagsOr, tagsNot) => {
|
||||
|
||||
if(tagsAnd.length > 0) {
|
||||
conditions.tags = {
|
||||
$all: tagsAnd.map(tag => tag.trim())
|
||||
$all : tagsAnd.map((tag)=>tag.trim())
|
||||
};
|
||||
}
|
||||
|
||||
if(tagsOr.length > 0) {
|
||||
conditions.tags = {
|
||||
...conditions.tags,
|
||||
$in: tagsOr.map(tag => tag.trim())
|
||||
$in : tagsOr.map((tag)=>tag.trim())
|
||||
};
|
||||
}
|
||||
|
||||
if(tagsNot.length > 0) {
|
||||
conditions.tags = {
|
||||
...conditions.tags,
|
||||
$nin: tagsNot.map(tag => tag.trim())
|
||||
$nin : tagsNot.map((tag)=>tag.trim())
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user