Fix: Investasi

Deskripsi:
- Upload gambar investasi ke storage wibu
- Upload bukti transfer ke storage wibu
# No Issue
This commit is contained in:
2024-10-15 11:06:14 +08:00
parent 3d6ec1410d
commit 5ff74b00f5
121 changed files with 4022 additions and 1139 deletions

View File

@@ -31,7 +31,7 @@ export default async function funEditInvestasi(
});
if (!updateImage) return { status: 400, message: "Gagal upload gambar" };
const upFolder = Buffer.from(await file.arrayBuffer());
const upFolder : any = Buffer.from(await file.arrayBuffer());
fs.writeFileSync(`./public/investasi/${updateImage.url}`, upFolder);
}

View File

@@ -7,6 +7,8 @@ export default async function getOneInvestasiById(id: string) {
id: id,
},
select: {
imageId: true,
prospektusFileId: true,
id: true,
author: {
select: {

View File

@@ -7,8 +7,8 @@ export default async function getPencarianInvestor() {
select: {
id: true,
name: true,
active: true
}
active: true,
},
});
return data;