Skip to content

Commit

Permalink
Typo in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri authored Mar 31, 2024
1 parent 4a3a637 commit d11f04d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aciniformes_backend/routes/reciever.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class GetSchema(BaseModel):
async def create(
create_schema: CreateSchema,
receiver: ReceiverServiceInterface = Depends(receiver_service),
_: dict[str] = Depends(UnionAuth(['pinger.reciever.create'])),
_: dict[str] = Depends(UnionAuth(['pinger.receiver.create'])),
):
"""Создание получателя уведомлений."""
id_ = await receiver.create(create_schema.model_dump())
Expand All @@ -61,7 +61,7 @@ async def create(
@router.get("")
async def get_all(
receiver: ReceiverServiceInterface = Depends(receiver_service),
_: dict[str] = Depends(UnionAuth(['pinger.reciever.read'])),
_: dict[str] = Depends(UnionAuth(['pinger.receiver.read'])),
):
"""Получить всех получателей уведомлений."""
res = await receiver.get_all()
Expand All @@ -72,7 +72,7 @@ async def get_all(
async def get(
id: int,
receiver: ReceiverServiceInterface = Depends(receiver_service),
_: dict[str] = Depends(UnionAuth(['pinger.reciever.read'])),
_: dict[str] = Depends(UnionAuth(['pinger.receiver.read'])),
):
"""Получение получателя уведомлений."""
try:
Expand All @@ -87,7 +87,7 @@ async def update(
id: int,
update_schema: UpdateSchema,
receiver: ReceiverServiceInterface = Depends(receiver_service),
_: dict[str] = Depends(UnionAuth(['pinger.reciever.update'])),
_: dict[str] = Depends(UnionAuth(['pinger.receiver.update'])),
):
"""Обновление получателя уведомлений по id."""
try:
Expand All @@ -101,7 +101,7 @@ async def update(
async def delete(
id: int,
receiver: ReceiverServiceInterface = Depends(receiver_service),
_: dict[str] = Depends(UnionAuth(['pinger.reciever.delete'])),
_: dict[str] = Depends(UnionAuth(['pinger.receiver.delete'])),
):
"""Удаление получателя уведомлений по id."""
await receiver.delete(id)

0 comments on commit d11f04d

Please sign in to comment.