Skip to content

Commit

Permalink
fix: adding correct path to rename the document (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caixetadev committed Jan 25, 2024
1 parent 5af50f0 commit 391fef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/docs/handleDocsRename.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func HandleDocsRename(c *gin.Context) {
return
}

prefix := filepath.Join(util.ExPath, "uploads", "images")
prefix := filepath.Join(util.ExPath, "uploads", "docs")

err := os.Rename(
filepath.Join(prefix, oldName),
Expand Down

0 comments on commit 391fef3

Please sign in to comment.