Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z committed Feb 25, 2025
1 parent b357485 commit 1fc7c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ func (c *Controller) CreateRepository(w http.ResponseWriter, r *http.Request, bo
}

// Validate storage ID exists
storageID = c.getRepoStorageID(storageID)
storageID = c.getRepoStorageID(storageID) // This returns the actual storageID for the repository
if !slices.Contains(c.Config.StorageConfig().GetStorageIDs(), storageID) {
c.handleAPIError(ctx, w, r, graveler.ErrInvalidStorageID)
return
Expand Down

0 comments on commit 1fc7c7d

Please sign in to comment.