Skip to content

Commit

Permalink
fix:added logs for parentThreadId in proof Request
Browse files Browse the repository at this point in the history
  • Loading branch information
RinkalBhojani committed Aug 30, 2024
1 parent 858334f commit 5a95d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/multi-tenancy/MultiTenancyController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ export class MultiTenancyController extends Controller {
autoAcceptProof: createRequestOptions.autoAcceptProof,
comment: createRequestOptions.comment,
})

console.log(`-----------createProofRequest`,JSON.stringify(proof,null,2));

Check failure on line 1646 in src/controllers/multi-tenancy/MultiTenancyController.ts

View workflow job for this annotation

GitHub Actions / Validate

Unexpected console statement

Check failure on line 1646 in src/controllers/multi-tenancy/MultiTenancyController.ts

View workflow job for this annotation

GitHub Actions / Validate

Replace `JSON.stringify(proof,null,2));` with `·JSON.stringify(proof,·null,·2))`
const proofMessage = proof.message
const outOfBandRecord = await tenantAgent.oob.createInvitation({
label: createRequestOptions.label,
Expand Down Expand Up @@ -1672,6 +1672,7 @@ export class MultiTenancyController extends Controller {
}
})

console.log(`-----------createProofRequest oobProofRecord`,JSON.stringify(oobProofRecord,null,2));

Check failure on line 1675 in src/controllers/multi-tenancy/MultiTenancyController.ts

View workflow job for this annotation

GitHub Actions / Validate

Unexpected console statement

Check failure on line 1675 in src/controllers/multi-tenancy/MultiTenancyController.ts

View workflow job for this annotation

GitHub Actions / Validate

Replace `JSON.stringify(oobProofRecord,null,2));` with `·JSON.stringify(oobProofRecord,·null,·2))`
return oobProofRecord
} catch (error) {
return internalServerError(500, { message: `something went wrong: ${error}` })
Expand Down
1 change: 1 addition & 0 deletions src/events/ProofEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 19 in src/events/ProofEvents.ts

View workflow job for this annotation

GitHub Actions / Validate

Unexpected console statement

Check failure on line 19 in src/events/ProofEvents.ts

View workflow job for this annotation

GitHub Actions / Validate

Replace `JSON.stringify(body,null,2));` with `·JSON.stringify(body,·null,·2))`
}

// Only send webhook if webhook url is configured
Expand Down

0 comments on commit 5a95d58

Please sign in to comment.