Fix: Investasi
Deskripsi: - Upload gambar investasi ke storage wibu - Upload bukti transfer ke storage wibu # No Issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ export default async function getOneInvestasiById(id: string) {
|
||||
id: id,
|
||||
},
|
||||
select: {
|
||||
imageId: true,
|
||||
prospektusFileId: true,
|
||||
id: true,
|
||||
author: {
|
||||
select: {
|
||||
|
||||
@@ -7,8 +7,8 @@ export default async function getPencarianInvestor() {
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
active: true
|
||||
}
|
||||
active: true,
|
||||
},
|
||||
});
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user