Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func commonOptions(cmd *cobra.Command) (fx.Option, error) {
}),
health.Module(),
publish.FXModuleFromFlags(cmd, service.IsDebug(cmd)),
fx.Supply(connectionOptions),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not doing the same as in main?

		fx.Provide(func() *bunconnect.ConnectionOptions {
			return connectionOptions
		}),

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it might be why the tests fails :D

licence.FXModuleFromFlags(cmd, ServiceName),
storage.Module(cmd, *connectionOptions, configEncryptionKey),
profiling.FXModuleFromFlags(cmd),
Expand Down
Loading