File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 15931593 * @apiSuccess {String[]} faculty.designation Faculty member's designation.
15941594 * @apiSuccess {String} faculty.natureOfAssociation Nature of association with the institution.
15951595 * @apiSuccess {String} faculty.additionalResponsibilities Additional responsibilities of the faculty.
1596- ** /
1596+ */
15971597
15981598//------------------------------------------------------------------------------------------
15991599// Topics.
Original file line number Diff line number Diff line change @@ -65,6 +65,6 @@ app.use("/group", groupRouter);
6565app . use ( "/semester" , semesterRouter ) ;
6666app . use ( "/faculty" , facultyRouter ) ;
6767app . use ( "/performance" , performarouter ) ;
68- app . use ( "topic" , topicRouter ) ;
68+ app . use ( "/ topic" , topicRouter ) ;
6969
7070export default app ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 try {
1111 // eslint-disable-next-line max-len
1212 const topic = await addNewTopic ( title ) ;
13- res . json ( { res : `added accreditation ${ topic . name } ` , id : topic . id } ) ;
13+ res . json ( { res : `added topic ${ topic . name } ` , id : topic . id } ) ;
1414 } catch ( error ) {
1515 logger . error ( "Error while inserting" , error ) ;
1616 res . status ( 500 ) ;
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export async function addNewTopic(title) {
55 const newTopic = await Topic . create ( {
66 title,
77 } ) ;
8- if ( newTopic . name === name ) {
9- return newAopic ;
8+ if ( newTopic . title === title ) {
9+ return newTopic ;
1010 }
1111 throw new databaseError . DataEntryError ( "Add Topic" ) ;
1212}
You can’t perform that action at this time.
0 commit comments