Skip to content

Commit

Permalink
fix: manuscript file validation (#4335)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiayako authored Jul 23, 2024
1 parent a680b54 commit 2a46090
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports.description = 'Fix manuscript file validation';

module.exports.up = (migration) => {
const manuscriptVersions = migration.editContentType('manuscriptVersions');

manuscriptVersions.editField('manuscriptFile').validations([
{
linkMimetypeGroup: ['pdfdocument'],
},
]);
};

module.exports.down = (migration) => {
const manuscriptVersions = migration.editContentType('manuscriptVersions');
manuscriptVersions.editField('manuscriptFile').validations([
{
linkMimetypeGroup: ['application/pdf'],
},
]);
};

0 comments on commit 2a46090

Please sign in to comment.