Perbaikan fitur user search pada server

This commit is contained in:
2024-04-22 10:35:16 +08:00
parent 18a2abdea2
commit d3ea37d854
4 changed files with 4 additions and 1 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -11,7 +11,7 @@ export default async function funGantiStatusInvestasi(
statusInves: string,
statusProgres?: string
) {
console.log(statusProgres)
if (statusProgres === '1') {
const publishCD = new Date();
const data = await prisma.investasi.update({

View File

@@ -4,6 +4,9 @@ import prisma from "@/app/lib/prisma";
export async function UserSearch_getListUser() {
const data = await prisma.user.findMany({
where: {
masterUserRoleId: "1"
},
select: {
id: true,
username: true,