Skip to content

Commit

Permalink
fix (redis): fix call result method from result.String() to result.Val()
Browse files Browse the repository at this point in the history
  • Loading branch information
PickHD committed May 9, 2023
1 parent d12f0b7 commit 33393eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortener/internal/v1/repository/short.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (sr *ShortRepositoryImpl) GetFullURLByKey(ctx context.Context, shortURL str
return "", result.Err()
}

return result.String(), nil
return result.Val(), nil
}

func (sr *ShortRepositoryImpl) SetFullURLByKey(ctx context.Context, shortURL string, fullURL string, duration time.Duration) error {
Expand Down

0 comments on commit 33393eb

Please sign in to comment.