Skip to content

Commit

Permalink
do not return token on databricks apis
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Nov 1, 2024
1 parent 264b705 commit 5187a02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/database/src/datasources/databrickssql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
> & {
Expand All @@ -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,
Expand Down

0 comments on commit 5187a02

Please sign in to comment.