Skip to content

Commit c18ab47

Browse files
authored
refactor(container): bind to constant instead of dynamic value (#14)
1 parent 505efde commit c18ab47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/configs/container.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const bind = container.bind.bind(container)
1414
// Client
1515
bind<RoBoostClient>(TYPES.RoBoostClient).to(RoBoostClient)
1616
.inSingletonScope()
17-
bind<BloxyClient>(TYPES.BloxyClient).toDynamicValue(() => new BloxyClient({ rest: { requester: bloxy.requester } }))
18-
.inSingletonScope()
17+
bind<BloxyClient>(TYPES.BloxyClient).toConstantValue(new BloxyClient({ rest: { requester: bloxy.requester } }))
1918

2019
// Event Handlers
2120
bind<BaseHandler>(TYPES.Handler).to(eventHandlers.GuildMemberRemoveEventHandler)

0 commit comments

Comments
 (0)