Skip to content

Commit

Permalink
feat(post-type-audio): loosen audio field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Apr 10, 2024
1 parent 605a8d0 commit 27c9504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/post-type-audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class AudioPostType {
errorMessage: (value, { req }) =>
req.__(`posts.error.media.empty`, "/music/audio.mp3"),
exists: { if: (value, { req }) => isRequired(req, "audio") },
isURL: true,
notEmpty: true,
},
};
}
Expand Down

0 comments on commit 27c9504

Please sign in to comment.