Skip to content

Commit 498504c

Browse files
author
Theodore Li
committed
Fix import ordering
1 parent c367da8 commit 498504c

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

apps/sim/app/api/tools/cloudwatch/describe-log-streams/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { createLogger } from '@sim/logger'
22
import { type NextRequest, NextResponse } from 'next/server'
33
import { z } from 'zod'
44
import { checkSessionOrInternalAuth } from '@/lib/auth/hybrid'
5+
import { createCloudWatchLogsClient, describeLogStreams } from '@/app/api/tools/cloudwatch/utils'
56

67
const logger = createLogger('CloudWatchDescribeLogStreams')
78

8-
import { createCloudWatchLogsClient, describeLogStreams } from '@/app/api/tools/cloudwatch/utils'
9-
109
const DescribeLogStreamsSchema = z.object({
1110
region: z.string().min(1, 'AWS region is required'),
1211
accessKeyId: z.string().min(1, 'AWS access key ID is required'),

apps/sim/app/api/tools/cloudwatch/get-log-events/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { createLogger } from '@sim/logger'
22
import { type NextRequest, NextResponse } from 'next/server'
33
import { z } from 'zod'
44
import { checkInternalAuth } from '@/lib/auth/hybrid'
5+
import { createCloudWatchLogsClient, getLogEvents } from '@/app/api/tools/cloudwatch/utils'
56

67
const logger = createLogger('CloudWatchGetLogEvents')
78

8-
import { createCloudWatchLogsClient, getLogEvents } from '@/app/api/tools/cloudwatch/utils'
9-
109
const GetLogEventsSchema = z.object({
1110
region: z.string().min(1, 'AWS region is required'),
1211
accessKeyId: z.string().min(1, 'AWS access key ID is required'),

apps/sim/app/api/tools/cloudwatch/query-logs/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { createLogger } from '@sim/logger'
33
import { type NextRequest, NextResponse } from 'next/server'
44
import { z } from 'zod'
55
import { checkInternalAuth } from '@/lib/auth/hybrid'
6+
import { createCloudWatchLogsClient, pollQueryResults } from '@/app/api/tools/cloudwatch/utils'
67

78
const logger = createLogger('CloudWatchQueryLogs')
89

9-
import { createCloudWatchLogsClient, pollQueryResults } from '@/app/api/tools/cloudwatch/utils'
10-
1110
const QueryLogsSchema = z.object({
1211
region: z.string().min(1, 'AWS region is required'),
1312
accessKeyId: z.string().min(1, 'AWS access key ID is required'),

0 commit comments

Comments
 (0)