Fix for schema endpoint, needed secrets removed as well.
This commit is contained in:
parent
f2484eafec
commit
859ec85fe9
|
@ -84,8 +84,9 @@ export async function buildSchemaFromDb(ctx: UserCtx) {
|
|||
setDefaultDisplayColumns(datasource)
|
||||
const dbResp = await db.put(datasource)
|
||||
datasource._rev = dbResp.rev
|
||||
const cleanedDatasource = await sdk.datasources.removeSecretSingle(datasource)
|
||||
|
||||
const response: any = { datasource }
|
||||
const response: any = { datasource: cleanedDatasource }
|
||||
if (error) {
|
||||
response.error = error
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue