Clean code

This commit is contained in:
Adria Navarro 2023-06-07 11:32:42 +01:00
parent f10d3d6973
commit bb901d94d2
2 changed files with 0 additions and 6 deletions

View File

@ -45,11 +45,6 @@ export async function validateDatasourceConfig(config) {
return await API.validateDatasource(datasource)
}
export async function getDatasourceInfo(config) {
const datasource = prepareData(config)
return await API.fetchInfoForDatasource(datasource)
}
export async function getDatasourceInfo(config) {
const datasource = prepareData(config)
const resp = await API.fetchInfoForDatasource(datasource)

View File

@ -309,7 +309,6 @@ export async function update(ctx: UserCtx<any, UpdateDatasourceResponse>) {
builderSocket?.emitDatasourceUpdate(ctx, datasource)
}
const preSaveAction: Partial<Record<SourceName, any>> = {
[SourceName.GOOGLE_SHEETS]: async (datasource: Datasource) => {
await googleSetupCreationAuth(datasource.config as any)