Skip to content

Commit

Permalink
force trailing slash for athena data-sources
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Nov 11, 2024
1 parent d5f129f commit b7fbf0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/v1/workspaces/workspace/data-sources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,15 @@ const dataSourcesRouter = (socketServer: IOServer) => {
case 'athena': {
const payload = {
...data.data,
s3OutputPath: data.data.s3OutputPath.endsWith('/')
? data.data.s3OutputPath
: `${data.data.s3OutputPath}/`,
workspaceId,
connStatus: 'offline' as const,
connError: JSON.stringify(neverPingedError),
lastConnection: null,
}

const ds = await createAthenaDataSource(
payload,
config().DATASOURCES_ENCRYPTION_KEY
Expand Down

0 comments on commit b7fbf0f

Please sign in to comment.