Skip to content

Commit ae69f01

Browse files
authored
Merge pull request #71 from seatable/toast-notifiation
Update main.py
2 parents a03db3a + 426c5b4 commit ae69f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seatable_api/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,10 @@ def get_related_users(self):
848848
response = requests.get(self._get_related_users_url(), headers=self.headers)
849849
return parse_response(response)['user_list']
850850

851-
def send_toast_notification(self, email, msg, toast_type='success'):
851+
def send_toast_notification(self, user_id, msg, toast_type='success'):
852852
url = self._send_toast_notification_url()
853853
requests.post(url, json={
854-
'to_user': email,
854+
'to_user': user_id,
855855
'toast_type': toast_type,
856856
'detail': {
857857
'msg': str(msg)

0 commit comments

Comments
 (0)