We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0b190 commit ae637bdCopy full SHA for ae637bd
src/mikro-orm.providers.ts
@@ -57,8 +57,8 @@ export function createMikroOrmAsyncOptionsProvider(options: MikroOrmModuleAsyncO
57
if (options.useFactory) {
58
return {
59
provide: MIKRO_ORM_MODULE_OPTIONS,
60
- useFactory: (...args: any[]) => {
61
- const factoryOptions = options.useFactory!(...args);
+ useFactory: async (...args: any[]) => {
+ const factoryOptions = await options.useFactory!(...args);
62
return options.contextName
63
? { contextName: options.contextName, ...factoryOptions }
64
: factoryOptions;
0 commit comments