Skip to content

Commit f26a375

Browse files
committed
chore: lint fixes
1 parent 1cb8a28 commit f26a375

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

apps/sim/lib/copilot/tools/server/table/user-table.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,7 @@ export const userTableServerTool: BaseServerTool<UserTableArgs, UserTableResult>
548548
} else {
549549
return {
550550
success: false,
551-
message:
552-
'Provide either "updates" array or "columnName" + "values" map',
551+
message: 'Provide either "updates" array or "columnName" + "values" map',
553552
}
554553
}
555554

apps/sim/lib/copilot/tools/shared/schemas.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ export const UserTableArgsSchema = z.object({
137137
rowId: z.string().optional(),
138138
data: z.record(z.any()).optional(),
139139
rows: z.array(z.record(z.any())).optional(),
140-
updates: z
141-
.array(z.object({ rowId: z.string(), data: z.record(z.any()) }))
142-
.optional(),
140+
updates: z.array(z.object({ rowId: z.string(), data: z.record(z.any()) })).optional(),
143141
rowIds: z.array(z.string()).optional(),
144142
values: z.record(z.any()).optional(),
145143
filter: z.any().optional(),

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Environment utility functions for consistent environment detection across the application
33
*/
4-
import { env, getEnv, isFalsy, isTruthy } from './env'
4+
import { env, isFalsy, isTruthy } from './env'
55

66
/**
77
* Is the application running in production mode
@@ -22,8 +22,8 @@ export const isTest = env.NODE_ENV === 'test'
2222
* Is this the hosted version of the application
2323
*/
2424
export const isHosted = true
25-
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26-
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
25+
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26+
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
2727

2828
/**
2929
* Is billing enforcement enabled

apps/sim/lib/table/service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,9 +1173,7 @@ export async function batchUpdateRows(
11731173
}
11741174
})
11751175

1176-
logger.info(
1177-
`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`
1178-
)
1176+
logger.info(`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`)
11791177

11801178
return {
11811179
affectedCount: mergedUpdates.length,

apps/sim/tools/perplexity/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const chatTool: ToolConfig<PerplexityChatParams, PerplexityChatResponse>
109109
const inputTokens = usage.prompt_tokens
110110
const outputTokens = usage.completion_tokens
111111

112-
let tokenCost =
112+
const tokenCost =
113113
(inputTokens * pricing.inputPerM) / 1_000_000 +
114114
(outputTokens * pricing.outputPerM) / 1_000_000
115115
const requestFee = pricing.requestPer1K / 1000

0 commit comments

Comments
 (0)