You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is when we are using it with Nestjs, and using dataSourceFactory, it will resolve the wrong return type. since the dataSourceFactory need to return as Promise<DataSource>
I think your project has a rule that forbids the async keyword on functions that only have synchronous operations.
How about this way? return Promise.resolve(addTransactionalDataSource(...))
The problem is when we are using it with Nestjs, and using
dataSourceFactory
, it will resolve the wrong return type. since thedataSourceFactory
need to return asPromise<DataSource>
For a temporary solution I have to do like:
The text was updated successfully, but these errors were encountered: