Skip to content

Commit 9f717d3

Browse files
committed
added AI support as well
1 parent d8e5fea commit 9f717d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ 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"};
200+
}
198201

199202
const courseOfferingsList: OfferingList[] = [];
200203
const validCourseOfferingsList: GroupedOfferingList[] = [];

0 commit comments

Comments
 (0)