fix build
Some checks failed
Build and Push App / build (push) Failing after 21s

This commit is contained in:
2026-04-15 22:40:04 +02:00
parent a38c5d1638
commit 889e70bfc0
16 changed files with 135 additions and 42 deletions

View File

@@ -4,11 +4,11 @@ import prisma from '../../../../../lib/prisma'
// PATCH /api/conversations/[id]/archive — Toggle archive status for the user
export async function PATCH(
request: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
context: { params: Promise<{ id: string }> }
): Promise<Response> {
try {
const userId = request.headers.get('x-user-id')
const { id } = await params
const { id } = await context.params
const { archived } = await request.json()
if (!userId) {

View File

@@ -4,11 +4,11 @@ import prisma from '../../../../lib/prisma'
// GET /api/conversations/[id] — Get messages for a conversation
export async function GET(
request: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
context: { params: Promise<{ id: string }> }
): Promise<Response> {
try {
const userId = request.headers.get('x-user-id')
const { id } = await params
const { id } = await context.params
if (!userId) {
return NextResponse.json({ error: 'Utilisateur non identifié' }, { status: 401 })
@@ -36,6 +36,7 @@ export async function GET(
select: {
id: true,
name: true,
email: true,
avatar: true
}
}

View File

@@ -36,6 +36,7 @@ export async function GET(request: NextRequest) {
select: {
id: true,
name: true,
email: true,
avatar: true,
role: true
}