Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
petyos committed Jan 11, 2024
1 parent a2f1976 commit bc4daef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion driven/awsstorage/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (a *Adapter) DeleteProfileImage(path string) error {
return nil
}

// CreateVoiceRecord uploads a voice record for the user
// CreateUserVoiceRecord uploads a voice record for the user
func (a *Adapter) CreateUserVoiceRecord(fileContent []byte, accountID string) (*string, error) {
log.Println("Create user voice record")

Expand Down
2 changes: 2 additions & 0 deletions driver/web/rest/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func (h ApisHandler) DeleteProfilePhoto(claims *tokenauth.Claims, w http.Respons
w.WriteHeader(http.StatusOK)
}

// StoreVoiceRecord store the user voice record
func (h ApisHandler) StoreVoiceRecord(claims *tokenauth.Claims, w http.ResponseWriter, r *http.Request) {
// validate file size
maxUploadAudioFileSize := int64(5 * 1024 * 1024) // 5 mb
Expand Down Expand Up @@ -256,6 +257,7 @@ func (h ApisHandler) StoreVoiceRecord(claims *tokenauth.Claims, w http.ResponseW
w.Write([]byte("Success"))
}

// GetVoiceRecord gets the user voice record
func (h ApisHandler) GetVoiceRecord(claims *tokenauth.Claims, w http.ResponseWriter, r *http.Request) {

fileBytes, err := h.app.Services.GetVoiceRecord(claims.Subject)
Expand Down

0 comments on commit bc4daef

Please sign in to comment.