PR comments.
This commit is contained in:
parent
ee5f0ec641
commit
e09550f7e3
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue