1
0
Fork 0
mirror of synced 2024-07-30 02:26:11 +12:00

PR comments.

This commit is contained in:
mike12345567 2023-05-17 09:45:25 +01:00
parent ee5f0ec641
commit e09550f7e3

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) {