We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed83214 commit 531eab0Copy full SHA for 531eab0
src/core/data-loader/loader-factory.decorator.ts
@@ -1,4 +1,4 @@
1
-import { Injectable, Scope, type Type } from '@nestjs/common';
+import { Injectable, type Type } from '@nestjs/common';
2
import { createMetadataDecorator } from '@seedcompany/nest';
3
import type { ValueOf } from 'type-fest';
4
import type { Many } from '~/common';
@@ -42,7 +42,7 @@ export const LoaderFactory =
42
options?: LoaderOptions,
43
): (<LoaderCtor extends DataLoaderCtor>(target: LoaderCtor) => void) =>
44
(target) => {
45
- Injectable({ scope: Scope.REQUEST })(target);
+ Injectable()(target);
46
47
LoaderFactoryMetadata(resource, {
48
...options,
0 commit comments