add: news search bar, application history

This commit is contained in:
Ivan Rezchikov
2026-07-26 18:26:26 +03:00
parent 8aeacaf0ea
commit e46235600b
7 changed files with 145 additions and 38 deletions
+1 -2
View File
@@ -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: {