Skip to content

Commit

Permalink
Error if not one of our two
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Sep 20, 2023
1 parent a0c63aa commit 95b1a27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controllers/nft_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ func (nc *NFTController) GetAftermarketDeviceNFTImage(c *fiber.Ctx) error {
key = nc.Settings.AutoPiNFTImage
case "Hashdog":
key = nc.Settings.MacaronNFTImage
default:
return fiber.NewError(fiber.StatusInternalServerError, fmt.Sprintf("No NFT image for manufacturer %s.", dm.Name))
}

s3o, err := nc.s3.GetObject(c.Context(), &s3.GetObjectInput{
Expand Down

0 comments on commit 95b1a27

Please sign in to comment.