From 5187a02094a09d619d7725e8238b163d6657213b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes da Costa Date: Fri, 1 Nov 2024 13:18:13 -0300 Subject: [PATCH] do not return token on databricks apis --- packages/database/src/datasources/databrickssql.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/database/src/datasources/databrickssql.ts b/packages/database/src/datasources/databrickssql.ts index d360c6a3..0e70b202 100644 --- a/packages/database/src/datasources/databrickssql.ts +++ b/packages/database/src/datasources/databrickssql.ts @@ -2,14 +2,14 @@ import { DatabricksSQLDataSource as PrismaDatabricksSQLDataSource } from '@prism import { DataSource } from './index.js' import prisma from '../index.js' -import { decrypt, encrypt } from './crypto.js' +import { encrypt } from './crypto.js' export type DatabricksSQLDataSource = Omit< PrismaDatabricksSQLDataSource, | 'createdAt' | 'updatedAt' | 'lastConnection' - | 'password' + | 'token' | 'structure' | 'dataSourceSchemaId' > & { @@ -28,7 +28,6 @@ function toDatabricksSQLDataSource( http_path: pdataSource.isDemo ? '' : pdataSource.http_path, catalog: pdataSource.isDemo ? '' : pdataSource.catalog, schema: pdataSource.isDemo ? '' : pdataSource.schema, - token: pdataSource.isDemo ? '' : pdataSource.token, notes: pdataSource.notes, workspaceId: pdataSource.workspaceId, isDemo: pdataSource.isDemo,