Skip to content

Commit

Permalink
Merge pull request #71 from PhonePe/hotfix
Browse files Browse the repository at this point in the history
Fixed the channel errors and import errors
  • Loading branch information
hiteshkumarthakur authored Dec 4, 2024
2 parents ff88ce8 + e9cad55 commit d590a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mantis/config_parsers/config_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Notify(BaseModel):
# This function will check for the channel types that are integrated in Mantis.
@validator('channel')
def check_channel(cls, v):
valid_channels = ['slack']
valid_channels = ['slack', 'mattermost']
for key in v.keys():
if key not in valid_channels:
raise ValueError("Invalid channel Name specified. Please only select amongst following options: ", valid_channels)
Expand Down
2 changes: 1 addition & 1 deletion mantis/utils/crud_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from mantis.utils.common_utils import CommonUtils
from mantis.config_parsers.config_client import ConfigProvider
from mantis.constants import ASSET_TYPE_SUBDOMAIN
from mantis.utils.tool_utils import get_findings_by_asset , get_passives_by_asset
from mantis.utils.tool_utils import get_findings_by_asset
from pymongo import UpdateOne, InsertOne
from pydantic import ValidationError
from datetime import datetime
Expand Down
2 changes: 1 addition & 1 deletion mantis/utils/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def get_extended_by_asset(asset: str, asset_type: str = None):
}
})

passives = await read_passives(pipeline)
passives = await read_extended_assets(pipeline)

return passives if passives else []

Expand Down

0 comments on commit d590a2e

Please sign in to comment.