Skip to content

Commit

Permalink
fix docstrings that aren't correct
Browse files Browse the repository at this point in the history
  • Loading branch information
leihelen committed Oct 22, 2023
1 parent dc7166f commit 404f01b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/endpoints/Profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const getStudentEmailByToken: Endpoint<ProfileRequest> = {
};

/**
* Returns the number of reviews that match a given netId and null if there are none
* Returns the number of reviews that match a given netId or a message if there
* are no none
* This method counts the total number of reviews left by a student.
* @param netId: netId that is checked to see if it is not empty and an ASCII value
* @returns: Endpoint with type NetIdQuery
Expand Down Expand Up @@ -73,7 +74,7 @@ export const countReviewsByStudentId: Endpoint<NetIdQuery> = {

/**
* Returns the number of likes that match the reviewIds associated with a given
* netId and error if there are none
* netId or throws an error if the netId doesn't exist
* This method calculates the total number of likes a student has received on all their reviews.
* @param netId: netId that is checked to see if it is not empty and an ASCII value
* @returns: Endpoint with type NetIdQuery
Expand Down Expand Up @@ -110,8 +111,8 @@ export const getTotalLikesByStudentId: Endpoint<NetIdQuery> = {
};

/**
* Returns the reviews that match the reviewIds associated with a given netId and
* error if there are none
* Returns the reviews that match the reviewIds associated with a given netId or
* throws an error if the netId doesn't exist
* This method gets all of the reviews created by a student.
* @param netId: netId that is checked to see if it is not empty and an ASCII value
* @returns: Endpoint with type NetIdQuery
Expand Down

0 comments on commit 404f01b

Please sign in to comment.