# fix
- authentication
- profile
- pencarian user
- forum
## No issue
This commit is contained in:
2024-05-20 10:55:13 +08:00
parent 66b9902d97
commit dbeb740d1f
58 changed files with 1374 additions and 386 deletions

View File

@@ -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,
},

View File

@@ -9,6 +9,7 @@ export async function Event_getListAllPublish() {
tanggal: "desc",
},
where: {
active: true,
eventMaster_StatusId: "1",
tanggal: {
gte: new Date(),