mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-31 19:21:08 +00:00
add admin checks for admin pages and run biome formating 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 11m8s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 11m8s
This commit is contained in:
@ -3,7 +3,9 @@ import type { TNationalPerson } from "@/lib/types";
|
||||
|
||||
export async function getNationalPerson({
|
||||
idCard,
|
||||
}: { idCard: string }): Promise<TNationalPerson> {
|
||||
}: {
|
||||
idCard: string;
|
||||
}): Promise<TNationalPerson> {
|
||||
const nationalInformation = await fetch(
|
||||
`${process.env.PERSON_VERIFY_BASE_URL}/api/person/${idCard}`,
|
||||
{
|
||||
@ -15,5 +17,3 @@ export async function getNationalPerson({
|
||||
const nationalData = (await nationalInformation.json()) as TNationalPerson;
|
||||
return nationalData;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user