fix(user): profile handler and main router updates

Minor adjustments to profile handler imports and main router configuration.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-04 11:25:41 +01:00
co-authored by Sisyphus
parent 068ae79462
commit 486173c5ff
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -840,7 +840,7 @@ func UploadProfilePictureHandler(w http.ResponseWriter, r *http.Request) {
bucket := getEnv("S3_PROFILE_PICS_BUCKET", "crussell-profile-pics")
if err := s3.Client.Upload(r.Context(), bucket, key, bytes.NewReader(fileBytes)); err != nil {
if err := s3.Client.Upload(r.Context(), bucket, key, bytes.NewReader(fileBytes), "image/jpeg"); err != nil {
log.Printf("Failed to upload profile picture to S3: %v", err)
http.Error(w, "Failed to upload image", http.StatusInternalServerError)
return