Revisi Admin Investasi

# fix:
- Perbaharui tampilan
### No issue
This commit is contained in:
2023-12-05 17:09:07 +08:00
parent 089010d2e8
commit 265a869946
16 changed files with 551 additions and 227 deletions

View File

@@ -0,0 +1,33 @@
"use server";
import prisma from "@/app/lib/prisma";
import _ from "lodash";
export default async function Admin_getPublishProgresInvestasi() {
const data = await prisma.investasi.findMany({
orderBy: {
updatedAt: "desc"
},
where: {
MasterStatusInvestasi: {
name: "Publish",
},
},
select: {
id: true,
author: {
select: {
username: true,
},
},
updatedAt: true,
targetDana: true,
progress: true,
},
});
// console.log(data)
return data;
}