File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1- import { Injectable , Scope , type Type } from '@nestjs/common' ;
1+ import { Injectable , type Type } from '@nestjs/common' ;
22import { createMetadataDecorator } from '@seedcompany/nest' ;
33import type { ValueOf } from 'type-fest' ;
44import type { Many } from '~/common' ;
@@ -42,7 +42,7 @@ export const LoaderFactory =
4242 options ?: LoaderOptions ,
4343 ) : ( < LoaderCtor extends DataLoaderCtor > ( target : LoaderCtor ) => void ) =>
4444 ( target ) => {
45- Injectable ( { scope : Scope . REQUEST } ) ( target ) ;
45+ Injectable ( ) ( target ) ;
4646
4747 LoaderFactoryMetadata ( resource , {
4848 ...options ,
Original file line number Diff line number Diff line change 1- import {
2- Injectable ,
3- type OnModuleInit ,
4- Scope ,
5- type Type ,
6- } from '@nestjs/common' ;
1+ import { Injectable , type OnModuleInit , type Type } from '@nestjs/common' ;
72import { ModulesContainer } from '@nestjs/core' ;
83import { many } from '~/common' ;
94import { type DataLoaderStrategy } from '~/core/data-loader' ;
@@ -25,7 +20,6 @@ export class ResourceLoaderRegistry implements OnModuleInit {
2520 async onModuleInit ( ) {
2621 const loaderFactories = [ ...this . modulesContainer . values ( ) ]
2722 . flatMap ( ( nestModule ) => [ ...nestModule . providers . values ( ) ] )
28- . filter ( ( provider ) => provider . scope === Scope . REQUEST )
2923 . flatMap ( ( provider ) => {
3024 if ( ! provider . metatype ) {
3125 return [ ] ;
You can’t perform that action at this time.
0 commit comments