Skip to content

Commit

Permalink
fix: Type for admission Trail
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorklauritzen committed Oct 12, 2024
1 parent d183aad commit 9ae2540
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/actions/admission/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { createAdmissionTrial } from '@/services/admission/create'
import { createAdmissionTrialValidation } from '@/services/admission/validation'
import { Session } from '@/auth/Session'
import type { ActionReturn } from '@/actions/Types'
import type { Admission, AdmissionTrial } from '@prisma/client'
import type { Admission } from '@prisma/client'
import type { ExpandedAdmissionTrial } from '@/services/admission/Types'


export async function createAdmissionTrialAction(
admission: Admission,
userId: FormData | number
): Promise<ActionReturn<AdmissionTrial>> {
): Promise<ActionReturn<ExpandedAdmissionTrial>> {
const session = await Session.fromNextAuth()
const authRes = CreateAdmissionTrialAuther.dynamicFields({}).auth(session)

Expand Down

0 comments on commit 9ae2540

Please sign in to comment.