fix lib
deskripsi: - pindah lib di dalam app ke src ( lib setara app dan app_modules )
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
|
||||
export async function Event_countTotalPesertaById(eventId: string) {
|
||||
const data = await prisma.event_Peserta.count({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import _ from "lodash";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { RouterEvent } from "@/lib/router_hipmi/router_event";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function Event_funDeleteById(eventId: string) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import _ from "lodash";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { MODEL_EVENT } from "../../_lib/interface";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
|
||||
export async function event_funUpdateKehadiran({
|
||||
userId,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
|
||||
export async function Event_CekUserJoinById(eventId: string, userId: string) {
|
||||
const cek = await prisma.event_Peserta.count({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
|
||||
export async function event_funCheckKehadiran({
|
||||
userId,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
|
||||
export async function event_funCheckPesertaByUserId({
|
||||
userId,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
|
||||
export async function event_checkStatus({ id }: { id: string }) {
|
||||
const checkStatus = await prisma.event.findFirst({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import _ from "lodash";
|
||||
import moment from "moment";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getListKontibusiByUserId({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
|
||||
export async function Event_getListPesertaById(eventId: string) {
|
||||
const data = await prisma.event_Peserta.findMany({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function event_getOneById(eventId: string) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
|
||||
export async function event_newGetListPesertaById({
|
||||
eventId,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getListRiwayatSaya({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import _ from "lodash";
|
||||
|
||||
export async function event_getListSemuaRiwayat({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getAllByStatusId({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getAllDraft({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getAllReject({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_getAllReview({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
import prisma from "@/lib/prisma";
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
|
||||
export async function event_funGetAllStatusPublish({ page }: { page: number }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
import { prisma } from "@/lib";
|
||||
|
||||
export async function event_getMasterStatus() {
|
||||
const data = await prisma.eventMaster_Status.findMany({});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use server"
|
||||
|
||||
import prisma from "@/app/lib/prisma"
|
||||
import prisma from "@/lib/prisma"
|
||||
|
||||
export async function Event_getMasterTipeAcara(){
|
||||
const data = await prisma.eventMaster_TipeAcara.findMany({
|
||||
|
||||
Reference in New Issue
Block a user