Skip to content

Commit 6941a0c

Browse files
committed
Maybe it makes more sense this way
1 parent 079e6dd commit 6941a0c

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/commands/audit-log/fetch-audit-log.ts

+17-17
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ export async function fetchAuditLog({
2525
)
2626
}
2727

28-
return await fetchAuditLogWithToken({
29-
apiToken,
28+
return await fetchAuditLogWithToken(apiToken, {
3029
logType,
3130
orgSlug,
3231
outputKind,
@@ -35,21 +34,22 @@ export async function fetchAuditLog({
3534
})
3635
}
3736

38-
export async function fetchAuditLogWithToken({
39-
apiToken,
40-
logType,
41-
orgSlug,
42-
outputKind,
43-
page,
44-
perPage
45-
}: {
46-
apiToken: string
47-
outputKind: 'json' | 'markdown' | 'print'
48-
orgSlug: string
49-
page: number
50-
perPage: number
51-
logType: string
52-
}): Promise<SocketSdkReturnType<'getAuditLogEvents'>['data'] | void> {
37+
export async function fetchAuditLogWithToken(
38+
apiToken: string,
39+
{
40+
logType,
41+
orgSlug,
42+
outputKind,
43+
page,
44+
perPage
45+
}: {
46+
outputKind: 'json' | 'markdown' | 'print'
47+
orgSlug: string
48+
page: number
49+
perPage: number
50+
logType: string
51+
}
52+
): Promise<SocketSdkReturnType<'getAuditLogEvents'>['data'] | void> {
5353
// Lazily access constants.spinner.
5454
const { spinner } = constants
5555

0 commit comments

Comments
 (0)