Skip to content

Commit

Permalink
fix addon image validation (lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp authored Nov 26, 2024
1 parent a5b5b28 commit a9cd7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/service/addon.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class AddonService {
private readonly addonRepo = new AddonFirestormRepository();

private validateImageType(mediaType: string) {
if (ACCEPTED_IMAGE_TYPES.includes(mediaType))
if (!ACCEPTED_IMAGE_TYPES.includes(mediaType))
throw new BadRequestError(
`Incorrect MIME type for input file: got ${mediaType}, expected ${ACCEPTED_IMAGE_TYPES.join(" | ")}`,
);
Expand Down

0 comments on commit a9cd7d9

Please sign in to comment.