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

Durable - Multi Tenant setup with Sequelize does not work #1361

Closed
3 of 4 tasks
dberardo-com opened this issue Aug 4, 2023 · 2 comments
Closed
3 of 4 tasks

Durable - Multi Tenant setup with Sequelize does not work #1361

dberardo-com opened this issue Aug 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@dberardo-com
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

linked to #990

i am using a sequelize option factories to dinamically create connections by Request parameters.

now i want these providers to become durable but i am facing an issue:

following the doc. online, the providers are indeed durable, in that they are not re-created at every similar request. but the issue is that previously created providers are not correctly retrieved ... so in fact only the last added provider by contextId is picked ... these looks to me like an ugly bug ...

are durable providers perhaps only intended to work with typeorm ?? is there any COMPLETE example out there for how this would look like ?

Minimum reproduction code

#990

Steps to reproduce

No response

Expected behavior

durable providers should use the same sequelize options

Package version

10

NestJS version

10

Node.js version

16

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@dberardo-com dberardo-com added the bug Something isn't working label Aug 4, 2023
@dberardo-com
Copy link
Author

@darrynhoskingluna have you managed to come up with an answer from discord ?

@kamilmysliwiec
Copy link
Member

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

@nestjs nestjs locked and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants