upd: global admin

Deskripsi:
- variable global untuk task

NO Issues
This commit is contained in:
amel
2024-09-10 16:48:25 +08:00
parent 6a33333ecf
commit 6ba2c0fc79
9 changed files with 94 additions and 71 deletions

View File

@@ -5,6 +5,7 @@ import { NextResponse } from "next/server";
import path from "path";
import fs from "fs";
import moment from "moment";
import { createLogUser } from "@/module/user";
// GET ALL DATA TUGAS DIVISI
@@ -196,6 +197,9 @@ export async function POST(request: Request) {
})
}
// create log user
const log = await createLogUser({ act: 'CREATE', desc: 'User membuat tugas divisi baru', table: 'divisionProject', data: data.id })
return NextResponse.json({ success: true, message: "Berhasil membuat tugas divisi" }, { status: 200 });