Clean code
This commit is contained in:
parent
e9d4dd51bb
commit
95c66edb65
|
@ -309,11 +309,6 @@ export async function update(ctx: UserCtx<any, UpdateDatasourceResponse>) {
|
||||||
builderSocket?.emitDatasourceUpdate(ctx, datasource)
|
builderSocket?.emitDatasourceUpdate(ctx, datasource)
|
||||||
}
|
}
|
||||||
|
|
||||||
const preSaveAction: Partial<Record<SourceName, any>> = {
|
|
||||||
[SourceName.GOOGLE_SHEETS]: async (datasource: Datasource) => {
|
|
||||||
await googleSetupCreationAuth(datasource.config as any)
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
const preSaveAction: Partial<Record<SourceName, any>> = {
|
const preSaveAction: Partial<Record<SourceName, any>> = {
|
||||||
[SourceName.GOOGLE_SHEETS]: async (datasource: Datasource) => {
|
[SourceName.GOOGLE_SHEETS]: async (datasource: Datasource) => {
|
||||||
|
|
Loading…
Reference in New Issue