From 5a95d58ceb64fee9ac66f50248a1379923bfaaaf Mon Sep 17 00:00:00 2001 From: "rinkal.bhojani" Date: Fri, 30 Aug 2024 17:37:41 +0530 Subject: [PATCH] fix:added logs for parentThreadId in proof Request --- src/controllers/multi-tenancy/MultiTenancyController.ts | 3 ++- src/events/ProofEvents.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/multi-tenancy/MultiTenancyController.ts b/src/controllers/multi-tenancy/MultiTenancyController.ts index e7c296e0..7f7212bc 100644 --- a/src/controllers/multi-tenancy/MultiTenancyController.ts +++ b/src/controllers/multi-tenancy/MultiTenancyController.ts @@ -1643,7 +1643,7 @@ export class MultiTenancyController extends Controller { autoAcceptProof: createRequestOptions.autoAcceptProof, comment: createRequestOptions.comment, }) - + console.log(`-----------createProofRequest`,JSON.stringify(proof,null,2)); const proofMessage = proof.message const outOfBandRecord = await tenantAgent.oob.createInvitation({ label: createRequestOptions.label, @@ -1672,6 +1672,7 @@ export class MultiTenancyController extends Controller { } }) + console.log(`-----------createProofRequest oobProofRecord`,JSON.stringify(oobProofRecord,null,2)); return oobProofRecord } catch (error) { return internalServerError(500, { message: `something went wrong: ${error}` }) diff --git a/src/events/ProofEvents.ts b/src/events/ProofEvents.ts index f7881fda..7e4d339a 100644 --- a/src/events/ProofEvents.ts +++ b/src/events/ProofEvents.ts @@ -16,6 +16,7 @@ export const proofEvents = async (agent: Agent, config: ServerConfig) => { }) const data = await tenantAgent.proofs.getFormatData(record.id) body.proofData = data + console.log(`body:`,JSON.stringify(body,null,2)); } // Only send webhook if webhook url is configured