Skip to content

Commit

Permalink
chore: changes spiHandler so params are awaited inside the abstractio…
Browse files Browse the repository at this point in the history
…n to avoid boilerplate in api-routes
  • Loading branch information
JohanHjelsethStorstad committed Jan 31, 2025
1 parent af10a6a commit f7003f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/users/[username]/(user-admin)/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import RegisterStudentCardButton from './RegisterStudentCardButton'
import { getProfileForAdmin } from '@/app/users/[username]/(user-admin)/getProfileForAdmin'
import type { PropTypes } from '@/app/users/[username]/page'
import Image from '@/components/Image/Image'
import type { PropTypes } from '@/app/users/[username]/page'

export default async function UserSettings({ params }: PropTypes) {
const { profile } = await getProfileForAdmin(await params, 'settings')
Expand Down

0 comments on commit f7003f4

Please sign in to comment.