#Job done
## feat - Fix bug login ### No issuue
This commit is contained in:
@@ -4,9 +4,9 @@ import { NextResponse } from "next/server";
|
||||
import { cookies } from "next/headers";
|
||||
import { sealData, unsealData } from "iron-session";
|
||||
import { getConfig } from "@/bin/config";
|
||||
import yaml from "yaml";
|
||||
import fs from "fs";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import fs from "fs";
|
||||
import yaml from "yaml";
|
||||
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
|
||||
|
||||
export async function POST(req: Request) {
|
||||
|
||||
@@ -39,23 +39,23 @@ export async function GET(req: Request) {
|
||||
});
|
||||
}
|
||||
|
||||
for (let i of userSeeder) {
|
||||
await prisma.user.upsert({
|
||||
where: {
|
||||
nomor: i.nomor,
|
||||
},
|
||||
create: {
|
||||
nomor: i.nomor,
|
||||
username: i.name,
|
||||
masterUserRoleId: i.masterUserRoleId,
|
||||
},
|
||||
update: {
|
||||
nomor: i.nomor,
|
||||
username: i.name,
|
||||
masterUserRoleId: i.masterUserRoleId,
|
||||
},
|
||||
});
|
||||
}
|
||||
// for (let i of userSeeder) {
|
||||
// await prisma.user.upsert({
|
||||
// where: {
|
||||
// nomor: i.nomor,
|
||||
// },
|
||||
// create: {
|
||||
// nomor: i.nomor,
|
||||
// username: i.name,
|
||||
// masterUserRoleId: i.masterUserRoleId,
|
||||
// },
|
||||
// update: {
|
||||
// nomor: i.nomor,
|
||||
// username: i.name,
|
||||
// masterUserRoleId: i.masterUserRoleId,
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
|
||||
for (let i of bidangBisnis) {
|
||||
await prisma.masterBidangBisnis.upsert({
|
||||
|
||||
Reference in New Issue
Block a user