Skip to content

Commit

Permalink
Merge pull request #38 from joshsoftware/refactor/public-route-for-tr…
Browse files Browse the repository at this point in the history
…anscriptions

refact: public route for transcriptions
  • Loading branch information
sethu authored Oct 8, 2024
2 parents 80627f0 + 2a93f53 commit d6eb3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions app/src/app/transcriptions/[transcription_id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ interface PageProps {
const page = async (props: PageProps) => {
const { transcription_id } = props.params;

const { user } = await validateRequest();

if (!user) return redirect("/signin");
// skip user signin validation for now

const transcription = await db
.select()
Expand Down
5 changes: 1 addition & 4 deletions app/src/app/transcriptions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ export const metadata: Metadata = {

const page = async () => {

const {user} = await validateRequest();

if (!user) return redirect("/signin");

// skip user signin validation for now

const userTranscriptions = await db
.select({
Expand Down

0 comments on commit d6eb3df

Please sign in to comment.