Skip to content

Commit

Permalink
chore: change projects with project
Browse files Browse the repository at this point in the history
  • Loading branch information
yamila-moreno committed Nov 7, 2023
1 parent 2bdcfae commit b3cb711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def notify_when_story_status_change(story: Story, status: str, emitted_by:
emitted_by=emitted_by,
notified_users=notified_users,
content=StoryStatusChangeNotificationContent(
projects=story.project,
project=story.project,
story=story,
changed_by=emitted_by,
status=status,
Expand Down Expand Up @@ -78,7 +78,7 @@ async def notify_when_story_is_deleted(story: Story, emitted_by: User) -> None:
emitted_by=emitted_by,
notified_users=notified_users,
content=StoryDeleteNotificationContent(
projects=story.project,
project=story.project,
story=story,
deleted_by=emitted_by,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class StoryDeleteNotificationContent(BaseModel):
projects: ProjectLinkNestedSerializer
project: ProjectLinkNestedSerializer
story: StoryNestedSerializer
deleted_by: UserNestedSerializer

Expand All @@ -21,7 +21,7 @@ class Config:


class StoryStatusChangeNotificationContent(BaseModel):
projects: ProjectLinkNestedSerializer
project: ProjectLinkNestedSerializer
story: StoryNestedSerializer
changed_by: UserNestedSerializer
status: str
Expand Down

0 comments on commit b3cb711

Please sign in to comment.