Skip to content

Commit

Permalink
feat: registration flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Apr 17, 2024
1 parent e5f8474 commit 4fc130d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
33 changes: 0 additions & 33 deletions apps/supabase/src/supa.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,6 @@ export type Json =
export type Database = {
public: {
Tables: {
_prisma_migrations: {
Row: {
applied_steps_count: number
checksum: string
finished_at: string | null
id: string
logs: string | null
migration_name: string
rolled_back_at: string | null
started_at: string
}
Insert: {
applied_steps_count?: number
checksum: string
finished_at?: string | null
id: string
logs?: string | null
migration_name: string
rolled_back_at?: string | null
started_at?: string
}
Update: {
applied_steps_count?: number
checksum?: string
finished_at?: string | null
id?: string
logs?: string | null
migration_name?: string
rolled_back_at?: string | null
started_at?: string
}
Relationships: []
}
auction_details: {
Row: {
address_auctioning_token: string | null
Expand Down
16 changes: 8 additions & 8 deletions apps/webapp/app/api/esr/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export async function POST(req: NextRequest) {
console.log('Session created successfully:', session)
}

const { data: esrUpdate, error } = await supabase
.from('esr')
.update({ trx_id: body.tx })
.match({ id })
// const { data: esrUpdate, error } = await supabase
// .from('esr')
// .update({ trx_id: body.tx })
// .match({ id })

if (error) {
throw new Error(`Error updating ESR entry: ${error.message}`)
}
console.log('ESR entry updated successfully:', esrUpdate)
// if (error) {
// throw new Error(`Error updating ESR entry: ${error.message}`)
// }
// console.log('ESR entry updated successfully:', esrUpdate)

return NextResponse.json({
success: true,
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/layout/mobile-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function MobileNav() {
/>
{open ? (
<Transition duration={0.2}>
<div className="mobile-nav">
<div className="md:hidden">
<NavLinks mobile />
</div>
</Transition>
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 4fc130d

Please sign in to comment.