Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/controllers/proofs/ProofController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export class ProofController extends Controller {
messages: [proofMessage],
autoAcceptConnection: true,
imageUrl: createRequestOptions?.imageUrl,
goalCode: createRequestOptions?.goalCode,
invitationDid,
})

Expand Down Expand Up @@ -279,4 +280,4 @@ export class ProofController extends Controller {
throw ErrorHandlingService.handle(error)
}
}
}
}
4 changes: 2 additions & 2 deletions src/events/ProofEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const proofEvents = async (agent: Agent, config: ServerConfig) => {
agent.events.on(ProofEventTypes.ProofStateChanged, async (event: ProofStateChangedEvent) => {
const record = event.payload.proofRecord
const body = { ...record.toJSON(), ...event.metadata } as { proofData?: any }
if (event.metadata.contextCorrelationId !== 'default' && record.state === 'done') {
if (event.metadata.contextCorrelationId !== 'default') {
Comment thread
bhavanakarwade marked this conversation as resolved.
const tenantAgent = await agent.modules.tenants.getTenantAgent({
tenantId: event.metadata.contextCorrelationId,
})
Expand Down Expand Up @@ -40,4 +40,4 @@ export const proofEvents = async (agent: Agent, config: ServerConfig) => {
})
}
})
}
}