upd: task divisi

Deskripsi:
- tambah file pada detail task divisi

No Issues
This commit is contained in:
amel
2024-09-02 14:01:27 +08:00
parent cbd999678d
commit b829daf525
6 changed files with 25 additions and 14 deletions

View File

@@ -157,8 +157,8 @@ export async function POST(request: Request) {
for (var pair of body.entries()) {
if (String(pair[0]) == "file" + a) {
const file = body.get(pair[0]) as File
const fName = file.name.split(".")[0]
const fExt = file.name.split(".").pop()
const fName = file.name.replace("." + fExt, "")
const insertToContainer = await prisma.containerFileDivision.create({