Skip to content

Commit

Permalink
fix: add comment params
Browse files Browse the repository at this point in the history
  • Loading branch information
masb0ymas committed Mar 6, 2021
1 parent 7337d4e commit 814a860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/RefreshToken/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class RefreshTokenService {
throw new ResponseError.BadRequest('Something went wrong')
}

/**
*
* @param email
* @param refreshToken
*/
public static async getAccessToken(email: string, refreshToken: string) {
if (!email || !refreshToken) {
throw new ResponseError.BadRequest('invalid token')
Expand Down
1 change: 1 addition & 0 deletions src/controllers/Role/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class RoleService {
/**
*
* @param id
* @param paranoid
*/
public static async getOne(id: string, paranoid?: boolean) {
const data = await Role.findByPk(id, { paranoid })
Expand Down

0 comments on commit 814a860

Please sign in to comment.