Fix: Cookies
Deksripsi: - Perbaikan cookies untuk server
This commit is contained in:
@@ -14,19 +14,12 @@ export default async function Layout({
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const version = versionUpdate.version;
|
||||
|
||||
const dataUser = await funGlobal_getUserById({ userId: userLoginId });
|
||||
const dataUser = await funGlobal_getUserById({ userId: userLoginId as string});
|
||||
const listNotifikasi = await adminNotifikasi_getByUserId({page: 1});
|
||||
const countNotifikasi = await adminNotifikasi_countNotifikasi();
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <AdminLayout
|
||||
listNotif={listNotif as any}
|
||||
dataUser={dataUser as any}
|
||||
countNotifikasi={countNotifikasi}
|
||||
>
|
||||
{children}
|
||||
</AdminLayout> */}
|
||||
<Admin_NewLayout
|
||||
user={dataUser as any}
|
||||
countNotifikasi={countNotifikasi as any}
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
"ProjectCollaboration_AnggotaRoomChat",
|
||||
]);
|
||||
let listMsg = await colab_getMessageByRoomId({ roomId: roomId, page: 1 });
|
||||
const dataUserLogin = await user_getOneByUserId(userLoginId);
|
||||
const dataUserLogin = await user_getOneByUserId(userLoginId as string);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -29,7 +29,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
/> */}
|
||||
|
||||
<Colab_GroupChatView
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
listMsg={listMsg}
|
||||
selectRoom={dataRoom as any}
|
||||
dataUserLogin={dataUserLogin as any}
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Colab_MainDetail
|
||||
dataColab={dataColab as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
listPartisipan={listPartisipan as any}
|
||||
cekPartisipan={cekPartisipan}
|
||||
/>
|
||||
|
||||
@@ -8,7 +8,7 @@ export default async function Page() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Beranda listData={listData as any} userLoginId={userLoginId} />
|
||||
<Colab_Beranda listData={listData as any} userLoginId={userLoginId as string} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<CreateCeritaPenggalangDonasi
|
||||
dataTemporary={getTemporaryCreate as any}
|
||||
userId={userLoginId}
|
||||
userId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -20,7 +20,7 @@ export default async function Layout({
|
||||
<LayoutDetailMainDonasi
|
||||
donasiId={donasiId}
|
||||
authorId={authorId as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
>
|
||||
{children}
|
||||
</LayoutDetailMainDonasi>
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<DetailMainDonasi
|
||||
dataDonasi={dataDonasi as any}
|
||||
countDonatur={countDonatur}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<DetailPublishDonasi
|
||||
dataPublish={dataPublish as any}
|
||||
countDonatur={countDonatur}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -12,7 +12,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Donasi_MetodePembayaran
|
||||
listBank={listBank}
|
||||
donasiId={donasiId}
|
||||
authorId={userLoginId}
|
||||
authorId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -7,6 +7,9 @@ export default async function Page() {
|
||||
const listTipeAcara = await Event_getMasterTipeAcara();
|
||||
|
||||
return (
|
||||
<Event_Create listTipeAcara={listTipeAcara as any} authorId={userLoginId} />
|
||||
<Event_Create
|
||||
listTipeAcara={listTipeAcara as any}
|
||||
authorId={userLoginId as string}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { event_getOneById } from "@/app_modules/event/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let eventId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const userLoginId : any= await funGetUserIdByToken();
|
||||
|
||||
const dataEvent = await event_getOneById(eventId);
|
||||
const listPeserta = await Event_getListPesertaById(eventId);
|
||||
@@ -19,7 +19,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Event_DetailMain
|
||||
dataEvent={dataEvent as any}
|
||||
listPeserta={listPeserta as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
isJoin={isJoin}
|
||||
totalPeserta={totalPeserta as any}
|
||||
/>
|
||||
|
||||
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Forum_MainDetail
|
||||
dataPosting={dataPosting as any}
|
||||
listKomentar={listKomentar as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
countKomentar={countKomentar}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Layout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataAuthor = await user_getOneByUserId(userLoginId);
|
||||
const dataAuthor = await user_getOneByUserId(userLoginId as string);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -8,7 +8,10 @@ export default async function Page() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Beranda listForum={listForum as any} userLoginId={userLoginId} />
|
||||
<Forum_Beranda
|
||||
listForum={listForum as any}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Forum_ReportKomentarLainnya
|
||||
komentarId={komentarId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -9,7 +9,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Forum_ReportPostingLainnya
|
||||
postingId={postingId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<Forum_ReportPosting
|
||||
postingId={postingId}
|
||||
listReport={listReport as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ import { redirect } from "next/navigation";
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const dataUser = await user_getOneByUserId(userLoginId);
|
||||
const dataUser = await user_getOneByUserId(userLoginId as string);
|
||||
const dataJob = await job_getTwoForHomeView();
|
||||
|
||||
if (dataUser?.active === false) {
|
||||
|
||||
@@ -13,7 +13,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Investasi_UiDetailMain
|
||||
dataInvestasi={dataInvestasi as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -14,7 +14,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
<>
|
||||
<Investasi_UiDetailPortofolio
|
||||
dataInvestasi={dataPortofolio as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -9,7 +9,9 @@ export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const statusTransaksi = await getMaster_StatusTransaksiInvestasi();
|
||||
const listTransaksi = await getListAllTransaksiById_Investasi(userLoginId);
|
||||
const listTransaksi = await getListAllTransaksiById_Investasi(
|
||||
userLoginId as string
|
||||
);
|
||||
|
||||
// NEW
|
||||
const dataTransaksi = await investasi_funGetTransaksiByUserId({ page: 1 });
|
||||
|
||||
@@ -6,7 +6,7 @@ import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_b
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const userLogin = await funGetUserProfile(userLoginId);
|
||||
const userLogin = await funGetUserProfile(userLoginId as string);
|
||||
const dataInvestasi = await getOneInvestasiById(params.id);
|
||||
|
||||
// console.log(dataInvestasi);
|
||||
|
||||
@@ -19,7 +19,7 @@ export default async function Layout({
|
||||
<>
|
||||
<KatalogLayout
|
||||
profileId={profileId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
authorId={authorId as any}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -17,7 +17,7 @@ export default async function Layout({
|
||||
<>
|
||||
<PortofolioLayout
|
||||
portoId={portoId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
authorId={getPorto?.Profile?.User?.id as any}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { CreateProfile } from "@/app_modules/katalog/profile";
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { redirect } from "next/navigation";
|
||||
export default async function Page() {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const dataUser = await user_getOneByUserId(userLoginId);
|
||||
const dataUser = await user_getOneByUserId(userLoginId as string);
|
||||
|
||||
if (dataUser?.active === true) {
|
||||
return redirect(RouterHome.main_home);
|
||||
|
||||
@@ -18,7 +18,7 @@ export default async function Layout({
|
||||
<>
|
||||
<LayoutVote_DetailKontribusi
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -11,14 +11,14 @@ export default async function Layout({
|
||||
params: { id: string };
|
||||
}) {
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_MainDetail
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -24,7 +24,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
isKontributor={isKontributor}
|
||||
pilihanKontributor={pilihanKontributor as any}
|
||||
listKontributor={listKontributor as any}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@ export default async function Layout({
|
||||
<>
|
||||
<LayoutVote_DetailPublish
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
userLoginId={userLoginId as string}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user