Skip to content

Commit 27c9504

Browse files
feat(post-type-audio): loosen audio field validation
1 parent 605a8d0 commit 27c9504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/post-type-audio/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class AudioPostType {
3434
errorMessage: (value, { req }) =>
3535
req.__(`posts.error.media.empty`, "/music/audio.mp3"),
3636
exists: { if: (value, { req }) => isRequired(req, "audio") },
37-
isURL: true,
37+
notEmpty: true,
3838
},
3939
};
4040
}

0 commit comments

Comments
 (0)