Skip to content

Commit

Permalink
Merge pull request #32 from tago-io/fix/notificationCreate/SDKPY-110
Browse files Browse the repository at this point in the history
Fixes method of run notificationCreate SDKPY-110
  • Loading branch information
felipefdl authored Oct 5, 2023
2 parents ec721e6 + 41f8278 commit 2aa138b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/tagoio_sdk/modules/Resources/Notification_Type.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class NotificationInfoBasic(TypedDict):
created_at: datetime


class NotificationcreateReturn(TypedDict):
class NotificationCreateReturn(TypedDict):
id: GenericID


Expand Down
6 changes: 3 additions & 3 deletions src/tagoio_sdk/modules/Resources/Run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tagoio_sdk.common.tagoio_module import TagoIOModule
from tagoio_sdk.modules.Resources.Notification_Type import (
NotificationCreate,
NotificationcreateReturn,
NotificationCreateReturn,
NotificationInfo,
)
from tagoio_sdk.modules.Resources.Run_Type import (
Expand Down Expand Up @@ -160,14 +160,14 @@ def notificationList(self, userID: GenericID) -> list[NotificationInfo]:

def notificationCreate(
self, userID: GenericID, data: NotificationCreate
) -> NotificationcreateReturn:
) -> NotificationCreateReturn:
result = self.doRequest(
{
"path": "/run/notification/",
"method": "POST",
"body": {
"run_user": userID,
"data": data,
**data,
},
}
)
Expand Down

0 comments on commit 2aa138b

Please sign in to comment.