Phase 4 of Migration

This commit is contained in:
2026-04-17 15:44:17 +03:00
parent 83361fad77
commit da4608c937
8 changed files with 257 additions and 7 deletions

View File

@@ -69,6 +69,8 @@ async def create_staff(
db,
data=body.model_dump(),
current_user_role=current_user.role,
actor_id=current_user.sub,
actor_name=current_user.name,
)
@@ -85,6 +87,8 @@ async def update_staff(
data=body.model_dump(exclude_unset=True),
current_user_role=current_user.role,
current_user_id=current_user.sub,
actor_id=current_user.sub,
actor_name=current_user.name,
)
@@ -100,6 +104,8 @@ async def update_staff_password(
staff_id=staff_id,
new_password=body.new_password,
current_user_role=current_user.role,
actor_id=current_user.sub,
actor_name=current_user.name,
)
@@ -114,4 +120,6 @@ async def delete_staff(
staff_id=staff_id,
current_user_role=current_user.role,
current_user_id=current_user.sub,
actor_id=current_user.sub,
actor_name=current_user.name,
)