260224:1606 20260224:1600 V1.8.0
All checks were successful
Build and Deploy / deploy (push) Successful in 6m25s
All checks were successful
Build and Deploy / deploy (push) Successful in 6m25s
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { AuditLog, AuditLogQueryParams } from '@/lib/services/audit-log.service';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { auditLogService, AuditLog } from '@/lib/services/audit-log.service';
|
||||
import { auditLogService } from '@/lib/services/audit-log.service';
|
||||
|
||||
export const auditLogKeys = {
|
||||
all: ['audit-logs'] as const,
|
||||
list: (params: any) => [...auditLogKeys.all, 'list', params] as const,
|
||||
list: (params?: AuditLogQueryParams) => [...auditLogKeys.all, 'list', params] as const,
|
||||
};
|
||||
|
||||
export function useAuditLogs(params?: any) {
|
||||
export function useAuditLogs(params?: AuditLogQueryParams) {
|
||||
return useQuery<AuditLog[]>({
|
||||
queryKey: auditLogKeys.list(params),
|
||||
queryFn: () => auditLogService.getLogs(params),
|
||||
|
||||
Reference in New Issue
Block a user