Fix QC
# fix - authentication - profile - pencarian user - forum ## No issue
This commit is contained in:
@@ -9,6 +9,7 @@ export async function Event_getByStatusId(statusId: string, authorId: string) {
|
||||
tanggal: "desc",
|
||||
},
|
||||
where: {
|
||||
active: true,
|
||||
eventMaster_StatusId: "1",
|
||||
authorId: authorId,
|
||||
tanggal: {
|
||||
@@ -27,9 +28,10 @@ export async function Event_getByStatusId(statusId: string, authorId: string) {
|
||||
if (statusId === "2") {
|
||||
const data = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
createdAt: "desc",
|
||||
updatedAt: "desc",
|
||||
},
|
||||
where: {
|
||||
active: true,
|
||||
eventMaster_StatusId: "2",
|
||||
authorId: authorId,
|
||||
},
|
||||
@@ -44,7 +46,11 @@ export async function Event_getByStatusId(statusId: string, authorId: string) {
|
||||
}
|
||||
if (statusId === "3") {
|
||||
const data = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
updatedAt: "desc",
|
||||
},
|
||||
where: {
|
||||
active: true,
|
||||
eventMaster_StatusId: "3",
|
||||
authorId: authorId,
|
||||
},
|
||||
@@ -59,7 +65,11 @@ export async function Event_getByStatusId(statusId: string, authorId: string) {
|
||||
}
|
||||
if (statusId === "4") {
|
||||
const data = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
updatedAt: "desc",
|
||||
},
|
||||
where: {
|
||||
active: true,
|
||||
eventMaster_StatusId: "4",
|
||||
authorId: authorId,
|
||||
},
|
||||
|
||||
@@ -9,6 +9,7 @@ export async function Event_getListAllPublish() {
|
||||
tanggal: "desc",
|
||||
},
|
||||
where: {
|
||||
active: true,
|
||||
eventMaster_StatusId: "1",
|
||||
tanggal: {
|
||||
gte: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user