Skip to content

Commit

Permalink
fix(lib): global module registration
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Aug 24, 2023
1 parent 75152ba commit 1d31f74
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/lib/encryption.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ export interface EncryptionModuleOptions {

export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } =
new ConfigurableModuleBuilder<EncryptionModuleOptions>()
.setExtras({
global: true,
})
.setExtras(
{
isGlobal: true,
},
(definition, extras) => ({
...definition,
global: extras.isGlobal,
})
)
.build();

@Global()
Expand Down

0 comments on commit 1d31f74

Please sign in to comment.