add: news search bar, application history
This commit is contained in:
@@ -77,9 +77,8 @@ export async function getUserApplications(userId: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function getPendingApplications() {
|
||||
export async function getAllApplications() {
|
||||
return prisma.citizenshipApplication.findMany({
|
||||
where: { status: "PENDING" },
|
||||
orderBy: { createdAt: "desc" },
|
||||
include: {
|
||||
user: {
|
||||
|
||||
@@ -43,4 +43,5 @@ export type CitizenshipApplicationWithWarning = CitizenshipApplication & {
|
||||
previousCitizenship: boolean;
|
||||
profileUrl: string;
|
||||
signatureUrl: string;
|
||||
};
|
||||
reviewer: { firstName: string; secondName: string } | null;
|
||||
};
|
||||
Reference in New Issue
Block a user