mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
15 lines
412 B
Python
15 lines
412 B
Python
from typing import List
|
|
|
|
import strawberry # noqa
|
|
from api.gql.audit.types import AuditLogType
|
|
from apps.audit.models import AuditLog
|
|
|
|
|
|
|
|
@strawberry.type
|
|
class AuditLogQuery:
|
|
@strawberry.field
|
|
async def audit_logs_filter(
|
|
self, info, target_type: str, target_id: str
|
|
) -> List[AuditLogType]:
|
|
return await AuditLog.get_all(target_type=target_type, target_id=target_id)
|