Fix: Cookies

Deksripsi:
- Perbaikan cookies untuk server
This commit is contained in:
2024-11-21 11:41:31 +08:00
parent a9cb6bc59b
commit abaec2c1c3
55 changed files with 1519 additions and 1401 deletions

View File

@@ -15,7 +15,7 @@ export async function Vote_funCreate(req: MODEL_VOTING, listVote: any[]) {
deskripsi: req.deskripsi,
awalVote: req.awalVote,
akhirVote: req.akhirVote,
authorId: userLoginId,
authorId: userLoginId as string,
},
select: {
id: true,

View File

@@ -18,7 +18,7 @@ export async function Vote_getAllListRiwayatSaya({ page }: { page: number }) {
},
where: {
voting_StatusId: "1",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
akhirVote: {
lte: new Date(),

View File

@@ -24,7 +24,7 @@ export async function vote_funGetAllByStatusId({
},
where: {
voting_StatusId: "1",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
akhirVote: {
gte: new Date(),
@@ -49,7 +49,7 @@ export async function vote_funGetAllByStatusId({
},
where: {
voting_StatusId: statusId,
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
},
});

View File

@@ -17,7 +17,7 @@ export async function vote_getAllDraft({ page }: { page: number }) {
},
where: {
voting_StatusId: "3",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
},
});

View File

@@ -17,7 +17,7 @@ export async function vote_getAllPublish({ page }: { page: number }) {
},
where: {
voting_StatusId: "1",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
akhirVote: {
gte: new Date(),

View File

@@ -17,7 +17,7 @@ export async function vote_getAllReject({ page }: { page: number }) {
},
where: {
voting_StatusId: "4",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
},
});

View File

@@ -17,7 +17,7 @@ export async function vote_getAllReview({ page }: { page: number }) {
},
where: {
voting_StatusId: "2",
authorId: userLoginId,
authorId: userLoginId as string,
isActive: true,
},
});