diff --git a/src/index.ts b/src/index.ts index 73e83c7..2c47164 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1042,7 +1042,7 @@ app.put( }, query: t.Object({ id: t.String(), - likedQuery: t.String() + liked: t.String() }), headers: t.Object({ authorization: t.String({ diff --git a/src/routes/berrydash/profile/posts/delete.ts b/src/routes/berrydash/profile/posts/delete.ts index 65d9adb..9c8c50c 100644 --- a/src/routes/berrydash/profile/posts/delete.ts +++ b/src/routes/berrydash/profile/posts/delete.ts @@ -38,14 +38,6 @@ export async function handler (context: Context) { const userId = authResult.id let idQuery = context.query.id ? parseInt(context.query.id, 10) : 0 - if (!idQuery || idQuery < 1) { - connection0.end() - connection1.end() - return jsonResponse( - { success: false, message: 'No valid post ID provided', data: null }, - 400 - ) - } const result = await db1 .update(berryDashUserPosts) diff --git a/src/routes/berrydash/profile/posts/get.ts b/src/routes/berrydash/profile/posts/get.ts index 568fdbb..edd9033 100644 --- a/src/routes/berrydash/profile/posts/get.ts +++ b/src/routes/berrydash/profile/posts/get.ts @@ -22,14 +22,6 @@ export async function handler (context: Context) { let userIdQuery = context.query.userId ? parseInt(context.query.userId, 10) : 0 - if (!userIdQuery || userIdQuery < 1) { - connection0.end() - connection1.end() - return jsonResponse( - { success: false, message: 'No valid user ID provided', data: null }, - 400 - ) - } const user = await db0 .select({ id: users.id })