1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Save datasource

This commit is contained in:
Adria Navarro 2023-05-31 14:29:45 +02:00
parent 945070488b
commit c47656d423

View file

@ -315,6 +315,12 @@ const preSaveAction: Partial<Record<SourceName, any>> = {
},
}
const preSaveAction: Partial<Record<SourceName, any>> = {
[SourceName.GOOGLE_SHEETS]: async (datasource: Datasource) => {
await googleSetupCreationAuth(datasource.config as any)
},
}
export async function save(
ctx: UserCtx<CreateDatasourceRequest, CreateDatasourceResponse>
) {