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

AWS Lambda support #65

Open
TopHatMan opened this issue Jun 25, 2019 · 2 comments
Open

AWS Lambda support #65

TopHatMan opened this issue Jun 25, 2019 · 2 comments

Comments

@TopHatMan
Copy link

If anyone wants to use this on lambda you got to change the code around 179- 180 to this

let lambdaID =Counter_${this._options.id}; if(!connection.models[lambdaID]){ return connection.model(lambdaID,CounterSchema); }else{ return connection.models[lambdaID]; }

@ramiel
Copy link
Owner

ramiel commented Jul 10, 2019

Hello @TopHatMan, is this a general consideration that maybe is valid also outside of Lambda? Would you like to provide a PR, maybe with a test case?

@TopHatMan
Copy link
Author

It should work outside of lambda too I think. I just made small adjusts and copied the code to my project at the time. Tbh I never made a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants