Anujcodecraft / Anujcodecraft/notes-online

## ❌ Upvoting PYQ Fails – `branch` field casting error

Đang mở
#33 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue NodeJS ReactJs
Ngôn ngữ chính
JavaScript
Star
7
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 🐛 Description:
When trying to upvote a PYQ, a `400 Bad Request` error is returned from the backend. The response suggests a validation failure related to the `branch` field.

---

### 💥 Error (from network tab):

```json
{
"error": "Failed to upvote PYQ",
"details": "pyqs validation failed: branch: Cast to ObjectId failed for value \"CSE\" (type string) at path \"branch\" because of \"BSONError\""
}

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.