Skip to content

Commit 14f59f8

Browse files
committed
Merge branch 'ty/scrum-156-max-char-limit' of https://github.com/UTSC-CSCC01-Software-Engineering-I/term-group-project-c01w25-project-course-matrix into ty/scrum-156-max-char-limit
2 parents a3febae + 249cd73 commit 14f59f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

course-matrix/backend/src/constants/availableFunctions.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@ export const availableFunctions: AvailableFunctions = {
195195
try {
196196
// Extract event details and course information from the request
197197
const { name, semester, courses, restrictions } = args;
198-
if(name.length>=50){
199-
return {status: 400, error: "timetable title is over 50 characters long"};
198+
if (name.length >= 50) {
199+
return {
200+
status: 400,
201+
error: "timetable title is over 50 characters long",
202+
};
200203
}
201204

202205
const courseOfferingsList: OfferingList[] = [];

0 commit comments

Comments
 (0)