Skip to content

Commit

Permalink
Update mirage/view;
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Dec 26, 2024
1 parent f395bed commit be7b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirage/views/preprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function createPreprintVersion(this: HandlerContext, schema: Schema) {
const basePreprintId = this.request.params.id as string;
const basePreprint = schema.preprints.find(basePreprintId);
basePreprint.update({ isLatestVersion: false });
const baseVersionNumber = basePreprint.preprintVersion || 1;
const baseVersionNumber = basePreprint.version || 1;
const providerModeration = basePreprint.provider && basePreprint.provider.reviewsWorkflow;
const newVersion = schema.preprints.create({
...basePreprint.attrs,
Expand Down

0 comments on commit be7b85a

Please sign in to comment.