Fix: Cookies
Deksripsi: - Perbaikan cookies untuk server
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function vote_getAllDraft({ page }: { page: number }) {
|
||||
},
|
||||
where: {
|
||||
voting_StatusId: "3",
|
||||
authorId: userLoginId,
|
||||
authorId: userLoginId as string,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function vote_getAllReject({ page }: { page: number }) {
|
||||
},
|
||||
where: {
|
||||
voting_StatusId: "4",
|
||||
authorId: userLoginId,
|
||||
authorId: userLoginId as string,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function vote_getAllReview({ page }: { page: number }) {
|
||||
},
|
||||
where: {
|
||||
voting_StatusId: "2",
|
||||
authorId: userLoginId,
|
||||
authorId: userLoginId as string,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user