mirror of
https://github.com/makeplane/plane.git
synced 2026-06-14 03:30:00 +00:00
[SILO-1174] fix: resolve Bitbucket DC permission error on pull request webhook events #6669
This commit is contained in:
+2
-2
@@ -50,7 +50,7 @@ const handlePullRequestEvent = async (data: BitbucketPullRequestDedupPayload) =>
|
||||
return;
|
||||
}
|
||||
|
||||
const { wsAdminCredential, planeCredentials } = context;
|
||||
const { wsAdminCredential } = context;
|
||||
|
||||
const { workspaceConnection: bitbucketWorkspaceConnection, allEntityConnections } =
|
||||
await getConnDetailsForBitbucketToPlaneSync({
|
||||
@@ -69,7 +69,7 @@ const handlePullRequestEvent = async (data: BitbucketPullRequestDedupPayload) =>
|
||||
return;
|
||||
}
|
||||
|
||||
const planeClient = await getPlaneAPIClient(planeCredentials, E_INTEGRATION_KEYS.BITBUCKET_DC);
|
||||
const planeClient = await getPlaneAPIClient(wsAdminCredential, E_INTEGRATION_KEYS.BITBUCKET_DC);
|
||||
const pullRequestService = await getBitbucketClientService(bitbucketWorkspaceConnection);
|
||||
|
||||
const pullRequestBehaviour = new PullRequestBehaviour(
|
||||
|
||||
Reference in New Issue
Block a user