Skip to content

Commit

Permalink
refactor(api): Rename invitation method as per requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
muntaxir4 committed Dec 9, 2024
1 parent cc2a242 commit 8cc2215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/workspace/controller/workspace.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class WorkspaceController {
@Query('search') search: string = '',
@Query('isAccepted') isAccepted: 'true' | 'false' | undefined = undefined
) {
return this.workspaceService.getInvitationsOfUser(
return this.workspaceService.getAllWorkspaceInvitations(
user,
page,
limit,
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/workspace/service/workspace.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class WorkspaceService {
* @param isAccepted The invitation status to filter by
* @returns The workspace invitations of the user, paginated, with metadata
*/
async getInvitationsOfUser(
async getAllWorkspaceInvitations(
user: User,
page: number,
limit: number,
Expand Down

0 comments on commit 8cc2215

Please sign in to comment.