Skip to content

Commit 3b9253d

Browse files
committed
refactor: improve code formatting and consistency in proposal router
1 parent 3a4f152 commit 3b9253d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/server/routers/proposal.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export const proposalRouter = router({
334334
if (!ctx.speaker.isOrganizer && existing.conference) {
335335
const conferenceId =
336336
typeof existing.conference === 'object' &&
337-
'_id' in existing.conference
337+
'_id' in existing.conference
338338
? existing.conference._id
339339
: typeof existing.conference === 'string'
340340
? existing.conference
@@ -901,16 +901,16 @@ export const proposalRouter = router({
901901

902902
const { review, reviewError } = existingReview
903903
? await updateReview(
904-
existingReview._id,
905-
ctx.speaker._id,
906-
reviewData,
907-
)
904+
existingReview._id,
905+
ctx.speaker._id,
906+
reviewData,
907+
)
908908
: await createReview(
909-
proposal._id,
910-
ctx.speaker._id,
911-
conferenceId,
912-
reviewData,
913-
)
909+
proposal._id,
910+
ctx.speaker._id,
911+
conferenceId,
912+
reviewData,
913+
)
914914

915915
if (reviewError || !review) {
916916
throw new TRPCError({

0 commit comments

Comments
 (0)