moleculerjs / database

Advanced Database Access Service for Moleculer microservices framework
MIT License
32 stars 15 forks source link

fix: Add new adapter to registry after its successfully connected #5

Closed vimalraj-a closed 2 years ago

vimalraj-a commented 2 years ago

When a new adapter prematurely added to set, makes the second action invocation fail with error saying cannot read <adapter function> of undefined. Because collection object is set only after successful connection.