1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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

View file

@ -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
}