remove task name once importer is done

This commit is contained in:
Hongbo Wu
2023-11-16 16:40:01 +08:00
parent d82eda1f32
commit 5614cb5580
2 changed files with 5 additions and 2 deletions

View File

@ -252,7 +252,8 @@ export const importer = Sentry.GCPFunction.wrapHttpFunction(
req.body.integrationName,
claims.token,
token,
'IMPORT'
'IMPORT',
null
)
if (!result) {
console.error('failed to update integration', {

View File

@ -31,7 +31,8 @@ export const updateIntegration = async (
name: string,
integrationToken: string,
token: string,
type: string
type: string,
taskName?: string | null
): Promise<boolean> => {
const requestData = JSON.stringify({
query: `
@ -56,6 +57,7 @@ export const updateIntegration = async (
token: integrationToken,
enabled: true,
type,
taskName,
},
},
})