Skip to content

Commit

Permalink
Add note in GetPackage function
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Jul 20, 2024
1 parent 224c452 commit 59b7dff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ingame/toyboxapi/getpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func GetPackage(w http.ResponseWriter, r *http.Request) {
return
}

// getscript also specifies "type" but scriptids are unique between types
// we don't need its value because of this

pkg, err := db.FetchPackage(scriptid, rev)
if err != nil {
utils.WriteError(w, r, fmt.Sprintf("failed to fetch package: %s", err))
Expand Down

0 comments on commit 59b7dff

Please sign in to comment.