fix typo
This commit is contained in:
@@ -113,13 +113,14 @@ export async function loader({ params, context, request }: Route.LoaderArgs) {
|
||||
}
|
||||
|
||||
export async function action({ params, request, context }: Route.ActionArgs) {
|
||||
const { orgid: org_id } = params
|
||||
const body = (await request.json()) as object
|
||||
|
||||
const r = await req({
|
||||
url: `enrollments`,
|
||||
headers: new Headers({ 'Content-Type': 'application/json' }),
|
||||
method: HttpMethod.POST,
|
||||
body: JSON.stringify({ org_id: params.orgid, ...body }),
|
||||
body: JSON.stringify({ org_id, ...body }),
|
||||
request,
|
||||
context
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user