-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: db nil error during initiation #1423
Conversation
@AvineshTripathi As far as I can see |
As you see https://github.com/tailwarden/komiser/pull/1423/files#diff-67213f39b84a013e7db04664cd3ad943b7a237d97b9c6e862d10806ac27def28L31 is by default Apart from the PR another way to do this would be https://go.dev/play/p/ki1y6kY4lq2 |
I did not understand this part. How has this been working all this time. |
when we are passing
when we pass it to and this must be broken with the recent major refactor |
I see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work!
db db variable in the
internal.go
file was not populated by theutils.SetupDBConnection
function and becuase of that thedb.Dialect().Name()
func returned a error in the NewApiHandler func stopping the server to start.