fix : calender
Deskripsi: - history backend>> batas nya sampe hari ini No Issues
This commit is contained in:
@@ -5,7 +5,7 @@ import { funGetUserByCookies } from "@/module/auth";
|
|||||||
import { prisma } from "@/module/_global";
|
import { prisma } from "@/module/_global";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
|
||||||
// GET HSITORY
|
// GET HISTORY
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
try {
|
try {
|
||||||
const user = await funGetUserByCookies()
|
const user = await funGetUserByCookies()
|
||||||
@@ -33,6 +33,9 @@ export async function GET(request: Request) {
|
|||||||
where: {
|
where: {
|
||||||
isActive: true,
|
isActive: true,
|
||||||
idDivision: idDivision,
|
idDivision: idDivision,
|
||||||
|
dateEnd: {
|
||||||
|
lte: new Date()
|
||||||
|
},
|
||||||
DivisionCalendar: {
|
DivisionCalendar: {
|
||||||
title: {
|
title: {
|
||||||
contains: (name == undefined || name == "null") ? "" : name,
|
contains: (name == undefined || name == "null") ? "" : name,
|
||||||
|
|||||||
Reference in New Issue
Block a user