Clean code
This commit is contained in:
parent
f10d3d6973
commit
bb901d94d2
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue