PR comments.

This commit is contained in:
mike12345567 2023-05-17 09:45:25 +01:00
parent ee5f0ec641
commit e09550f7e3
1 changed files with 2 additions and 4 deletions

View File

@ -131,10 +131,8 @@ export async function verify(
) { ) {
const { datasource } = ctx.request.body const { datasource } = ctx.request.body
let existingDatasource: undefined | Datasource let existingDatasource: undefined | Datasource
try { if (datasource._id) {
existingDatasource = await sdk.datasources.get(datasource._id!) existingDatasource = await sdk.datasources.get(datasource._id)
} catch (err) {
// doesn't exist - can ignore, first creation
} }
let enrichedDatasource = datasource let enrichedDatasource = datasource
if (existingDatasource) { if (existingDatasource) {