Skip to content

Commit

Permalink
[�Fix] nil pointer (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 authored Feb 20, 2024
1 parent 43c138f commit c8e2c67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/handler/sentence.handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func (handler *SentenceHandlerImpl) GetSentence(c echo.Context) error {
return c.JSON(http.StatusOK, response)
}

func SentenceHandlerInit(sentenceService service.SentenceService) *SentenceHandlerImpl {
func SentenceHandlerInit(sentenceService service.SentenceService, storageService service.StorageService) *SentenceHandlerImpl {
return &SentenceHandlerImpl{
sentenceService: sentenceService,
storageService: storageService,
}
}

0 comments on commit c8e2c67

Please sign in to comment.