Skip to content

Commit 464d8a8

Browse files
changed subjects and be code
1 parent c4c1d2d commit 464d8a8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/app/api/admin/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function POST(req: Request) {
2424
exam,
2525
});
2626
if (existingPaper) {
27-
NextResponse.json({ message: "Paper already exists" }, { status: 409 });
27+
return NextResponse.json({ message: "Paper already exists" }, { status: 409 });
2828
}
2929
if (!isPdf) {
3030
// @ts-expect-error: cloudinary was dumb this time
@@ -73,8 +73,10 @@ export async function POST(req: Request) {
7373
{ status: 201 },
7474
);
7575
} catch (error) {
76+
console.error(error);
7677
return NextResponse.json(
7778
{ message: "Failed to fetch papers", error },
79+
7880
{ status: 500 },
7981
);
8082
}

src/app/upload/select_options.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const courses = [
2424
"Discrete Mathematics and Graph Theory [BMAT205L]",
2525
"Database Systems [BITE302L]",
2626
"Operating Systems [BITE303L]",
27+
"Operating Systems [BCSE303L]",
2728
"Data Structures and Algorithms Lab [BITE201P]",
2829
"Technical English Communication [BENG101L]",
2930
"Quantitative Skills Practice I [BSTS101P]",
@@ -42,13 +43,15 @@ const courses = [
4243
"Big Data Analytics [BITE411L]",
4344
"Embedded Systems and IoT [BITE403L]",
4445
"Data Structures and Algorithms [BITE201L]",
46+
"Data Structures and Algorithms [BCSE202L]",
4547
"Software Engineering Lab [BITE307P]",
4648
"Computer Graphics [BITE313L]",
4749
"Multimedia Systems [BITE314L]",
4850
"Software Engineering [BITE307L]",
4951
"Control Systems [BECE302L]",
5052
"Embedded Systems and IoT Lab [BITE403P]",
5153
"Artificial Intelligence [BITE308L]",
54+
"Artificial Intelligence [BCSE306L]",
5255
"Human Computer Interaction [BITE311L]",
5356
"Laboratory Project [BITE393J]",
5457
"Technical Answers to Real Problems Project [BITE391J]",
@@ -67,6 +70,7 @@ const courses = [
6770
"Network Management [BITE408L]",
6871
"Cyber Security [BITE413L]",
6972
"Soft Computing [BITE405L]",
73+
"Essentials Of Data Analytics [BCSE352E]",
7074
"Blockchain Technology [BITE414L]",
7175
"Quantum Computing [BITE407L]",
7276
"Engineering Optimization [BITE415L]",
@@ -191,6 +195,9 @@ const courses = [
191195
"Random Processes [BECE207L]",
192196
"VLSI System Design [BECE303L]",
193197
"Digital Communication System [BECE306L]",
198+
"Computer Networks [BCSE308L]",
199+
"Foundations of Data Analytics [BCSE351E]",
200+
"Embedded Systems DEsign [BECE403E]"
194201
];
195202

196203
const slots: string[] = [

0 commit comments

Comments
 (0)