1
0
Fork 0
mirror of synced 2024-07-11 09:15:48 +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
let existingDatasource: undefined | Datasource
try {
existingDatasource = await sdk.datasources.get(datasource._id!)
} catch (err) {
// doesn't exist - can ignore, first creation
if (datasource._id) {
existingDatasource = await sdk.datasources.get(datasource._id)
}
let enrichedDatasource = datasource
if (existingDatasource) {