Skip to content

Commit

Permalink
Merge pull request #2715 from InfinityPacer/feature/push
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Sep 14, 2024
2 parents e86bf61 + 2f2ecc8 commit 31aadab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/modules/slack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def init_module(self) -> None:
self._configs = {}
self._clients = {}
for client in clients:
if client.type == "telegram" and client.enabled:
if client.type == "slack" and client.enabled:
self._configs[client.name] = client
self._clients[client.name] = Slack(**client.config, name=client.name)

Expand Down
2 changes: 1 addition & 1 deletion app/modules/synologychat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def init_module(self) -> None:
self._configs = {}
self._clients = {}
for client in clients:
if client.type == "slack" and client.enabled:
if client.type == "synologychat" and client.enabled:
self._configs[client.name] = client
self._clients[client.name] = SynologyChat(**client.config)

Expand Down
2 changes: 1 addition & 1 deletion app/schemas/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class NotificationConf(BaseModel):
"""
# 名称
name: Optional[str] = None
# 类型 telegram/wechat/vocechat/synologychat
# 类型 telegram/wechat/vocechat/synologychat/slack/webpush
type: Optional[str] = None
# 配置
config: Optional[dict] = {}
Expand Down

0 comments on commit 31aadab

Please sign in to comment.