Skip to content

Not possible to pass context to method #6

@matikucharski

Description

@matikucharski

Currently it is not possible to use this keyword in retried method:

@withRetry({
        errors: [ErrorOnWhichWeShouldRetry],
        maxCalls: 10,
        delay: 1000,
    })
    async offerEmailCredential(connectionId: string, email: string) {
        const offerCredentialData = JSON.stringify({
            issuerDid: this.configService.get<string>('prism.prismIssuerDid'),
            connectionId,
            attrClaims: [
                {
                    name: 'email',
                    value: email
                }
            ]
        });
    ....
    }

This returns Cannot read properties of undefined (reading 'configService'). It is very often used with Nestjs

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions