Skip to content

Commit

Permalink
Fix bug in DgsDataLoaderProvider
Browse files Browse the repository at this point in the history
One of the createDataLoader methods was calling wrappedDataLoader, but then
was erroneously returning a reference to the unwrapped loader.
  • Loading branch information
kilink committed Apr 26, 2022
1 parent 1feae83 commit 53fd828
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class DgsDataLoaderProvider(private val applicationContext: ApplicationContext)
extendedBatchLoader.setDataLoaderRegistry(dataLoaderRegistry)
}

return DataLoaderFactory.newDataLoader(batchLoader, options)
return DataLoaderFactory.newDataLoader(extendedBatchLoader, options)
}

private fun <T> createDataLoader(
Expand Down

0 comments on commit 53fd828

Please sign in to comment.