Fix: Cookies
Deksripsi: - Perbaikan cookies untuk server
This commit is contained in:
@@ -51,7 +51,7 @@ export default async function colab_funCreateRoomChat(
|
||||
const createForAuthor =
|
||||
await prisma.projectCollaboration_AnggotaRoomChat.create({
|
||||
data: {
|
||||
userId: userLoginId,
|
||||
userId: userLoginId as string,
|
||||
projectCollaboration_RoomChatId: createRoom.id,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ export default async function colab_CekNotifikasi() {
|
||||
|
||||
const cekNotif = await prisma.projectCollaboration_Notifikasi.findMany({
|
||||
where: {
|
||||
userId: userLoginId,
|
||||
userId: userLoginId as string,
|
||||
isRead: false,
|
||||
},
|
||||
select: {
|
||||
|
||||
@@ -11,7 +11,7 @@ export default async function colab_getListNotifikasiByUserId() {
|
||||
createdAt: "desc",
|
||||
},
|
||||
where: {
|
||||
userId: userLoginId,
|
||||
userId: userLoginId as string,
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
@@ -20,7 +20,7 @@ export default async function colab_getListRoomChatByAuthorId({
|
||||
createdAt: "desc",
|
||||
},
|
||||
where: {
|
||||
userId: userLoginId,
|
||||
userId: userLoginId as string,
|
||||
},
|
||||
select: {
|
||||
ProjectCollaboration_RoomChat: {
|
||||
|
||||
Reference in New Issue
Block a user