Skip to content

Commit

Permalink
Make if it's a Live Review available
Browse files Browse the repository at this point in the history
Refs #126
  • Loading branch information
thewilkybarkid committed Aug 30, 2024
1 parent bd41989 commit 8692ec7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/reviews.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Reviews = Schema.Array(
createdAt: Temporal.PlainDateFromStringSchema,
preprint: Doi.ParseDoiSchema,
language: Schema.OptionFromUndefinedOr(LanguageCode.LanguageCodeSchema),
live: Schema.Boolean,
server: PreprintServer.PreprintServerSchema,
type: Schema.Literal('full', 'structured', 'rapid'),
}),
Expand Down Expand Up @@ -93,6 +94,7 @@ const getLegacyRapidReviews = Effect.gen(function* () {
club: Option.none(),
createdAt: review.createdAt.toZonedDateTimeISO('UTC').toPlainDate(),
language: Option.some('en'),
live: false,
preprint: review.preprint.handle,
server: review.preprint.preprintServer,
type: 'rapid',
Expand All @@ -118,6 +120,7 @@ const getLegacyReviews = Effect.gen(function* () {
club: Option.none(),
createdAt: review.createdAt.toZonedDateTimeISO('UTC').toPlainDate(),
language: Option.some('en'),
live: false,
preprint: review.preprint.handle,
server: review.preprint.preprintServer,
type: 'full',
Expand Down

0 comments on commit 8692ec7

Please sign in to comment.