From 8cc2215dbf56195c5968f06332dc7b5a9af24245 Mon Sep 17 00:00:00 2001 From: muntaxir4 Date: Tue, 10 Dec 2024 03:06:15 +0530 Subject: [PATCH] refactor(api): Rename invitation method as per requirements --- apps/api/src/workspace/controller/workspace.controller.ts | 2 +- apps/api/src/workspace/service/workspace.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/workspace/controller/workspace.controller.ts b/apps/api/src/workspace/controller/workspace.controller.ts index cd594429..99ba5cb7 100644 --- a/apps/api/src/workspace/controller/workspace.controller.ts +++ b/apps/api/src/workspace/controller/workspace.controller.ts @@ -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, diff --git a/apps/api/src/workspace/service/workspace.service.ts b/apps/api/src/workspace/service/workspace.service.ts index 71df04c5..bf900eaa 100644 --- a/apps/api/src/workspace/service/workspace.service.ts +++ b/apps/api/src/workspace/service/workspace.service.ts @@ -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,