diff --git a/src/app/api/ops/[database_id]/handle-select-table.ts b/src/app/api/ops/[database_id]/handle-select-table.ts index 17983cc9..a524ce62 100644 --- a/src/app/api/ops/[database_id]/handle-select-table.ts +++ b/src/app/api/ops/[database_id]/handle-select-table.ts @@ -21,7 +21,7 @@ const handleSelectTableRequest: DatabaseOperationHandler< if (body.options.orderBy) { for (const orderOption of body.options.orderBy) { - if (orderOption.by !== "DESC" && orderOption.by === "ASC") { + if (orderOption.by !== "DESC" && orderOption.by !== "ASC") { throw new ApiError({ message: "Order by must be DESC or ASC", status: HttpStatus.FORBIDDEN,