Skip to content

Commit

Permalink
fix: get latest resource error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Jan 9, 2025
1 parent 1353733 commit b2141e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func (h *VersionHandler) GetLatest(c *fiber.Ctx) error {
})
}
storageRootDir := filepath.Join(cwd, "storage")
patchDir := filepath.Join(storageRootDir, resIDStr, latest.Name, "patch")
patchDir := filepath.Join(storageRootDir, resIDStr, strconv.Itoa(latest.ID), "patch")
patchName := fmt.Sprintf("%s-%s", current.Name, latest.Name)
latestStorage, err := h.storageLogic.GetByVersionID(ctx, latest.ID)
if err != nil {
Expand Down

0 comments on commit b2141e2

Please sign in to comment.