lambrohan / nestjs-meilisearch

Meilisearch module for nestjs applications.
https://www.npmjs.com/package/nestjs-meilisearch
MIT License
22 stars 7 forks source link

fix: use provided options in forRoot #5

Closed noftaly closed 1 year ago

noftaly commented 2 years ago

This PR replaces the test code in .forRoot by the provided options.

Before, no matter the api key we gave in options it would not work, unless it was, of course, 12131211. This patch makes it so we connect with the user-provided options and their own host/api key, the same way it is done in forRootAsync