mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
removed comments and utils
This commit is contained in:
@@ -67,8 +67,6 @@ export async function getOAuthToken(userId: string, providerId: string): Promise
|
||||
accessToken: account.accessToken,
|
||||
refreshToken: account.refreshToken,
|
||||
accessTokenExpiresAt: account.accessTokenExpiresAt,
|
||||
accountId: account.accountId,
|
||||
providerId: account.providerId,
|
||||
})
|
||||
.from(account)
|
||||
.where(and(eq(account.userId, userId), eq(account.providerId, providerId)))
|
||||
|
||||
@@ -32,7 +32,6 @@ function buildInsertSQL(
|
||||
return 'NULL'
|
||||
}
|
||||
if (typeof val === 'string') {
|
||||
// Escape single quotes by doubling them
|
||||
return `'${val.replace(/'/g, "''")}'`
|
||||
}
|
||||
if (typeof val === 'boolean') {
|
||||
@@ -153,7 +152,6 @@ export const snowflakeInsertRowsTool: ToolConfig<
|
||||
}
|
||||
}
|
||||
|
||||
// Build INSERT SQL
|
||||
const insertSQL = buildInsertSQL(
|
||||
params.database,
|
||||
params.schema,
|
||||
@@ -202,7 +200,6 @@ export const snowflakeInsertRowsTool: ToolConfig<
|
||||
|
||||
const data = await response.json()
|
||||
|
||||
// Get number of rows inserted from response
|
||||
const rowsInserted = data.statementStatusUrl ? params?.values.length || 0 : 0
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user