Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to pass context to method #6

Closed
matikucharski opened this issue May 14, 2024 · 1 comment
Closed

Not possible to pass context to method #6

matikucharski opened this issue May 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@matikucharski
Copy link

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

@Teneff Teneff added the bug Something isn't working label May 16, 2024
@Teneff Teneff self-assigned this May 16, 2024
@Teneff Teneff added this to the 1.1.2 milestone May 16, 2024
Teneff added a commit that referenced this issue May 16, 2024
@Teneff
Copy link
Owner

Teneff commented May 16, 2024

@matikucharski, thanks for the report! The issue is now fixed in @1.1.2

@Teneff Teneff closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants