Fix for schema endpoint, needed secrets removed as well.

This commit is contained in:
mike12345567 2023-03-14 16:13:28 +00:00
parent f2484eafec
commit 859ec85fe9
1 changed files with 2 additions and 1 deletions

View File

@ -84,8 +84,9 @@ export async function buildSchemaFromDb(ctx: UserCtx) {
setDefaultDisplayColumns(datasource) setDefaultDisplayColumns(datasource)
const dbResp = await db.put(datasource) const dbResp = await db.put(datasource)
datasource._rev = dbResp.rev datasource._rev = dbResp.rev
const cleanedDatasource = await sdk.datasources.removeSecretSingle(datasource)
const response: any = { datasource } const response: any = { datasource: cleanedDatasource }
if (error) { if (error) {
response.error = error response.error = error
} }