From cb2728e7f505d731c3eef4f2b15d2d250e954463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 6 Mar 2022 15:45:33 +0100 Subject: [PATCH] uncrionge front miss reactions detection --- web-app/src/utils/utils.tsx | 2 +- worker/src/services/github.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web-app/src/utils/utils.tsx b/web-app/src/utils/utils.tsx index ebbe05b..54f9195 100644 --- a/web-app/src/utils/utils.tsx +++ b/web-app/src/utils/utils.tsx @@ -145,7 +145,7 @@ export const deSerializeApiPipelineReaction = (data: any, refReaction: AppAREATy export const deSerializePipeline = (data: any, AREAs: Array>): AppPipelineType => { let reactionList: AppAREAType[] = []; for (const reaction of data.reactions) { - const refReaction = deepCopy(AREAs[1].filter((el) => el.type === data.rType)[0]); + const refReaction = deepCopy(AREAs[1].filter((el) => el.type === reaction.rType)[0]); if (refReaction !== undefined) reactionList.push(deepCopy(deSerializeApiPipelineReaction(reaction, refReaction))); } diff --git a/worker/src/services/github.ts b/worker/src/services/github.ts index 1685612..9acba08 100644 --- a/worker/src/services/github.ts +++ b/worker/src/services/github.ts @@ -17,7 +17,7 @@ export class Github extends BaseService { throw new Error("User not authenticated via github"); this._github = new Octokit({auth: pipeline.userData["Github"].accessToken}); this._websocket = new Webhooks({ - secret: "bidibi" + secret: pipeline.userData["Github"].accessToken }); }