diff --git a/packages/server/src/modules/ee/Workspaces/commands/InactivateWorkspace.service.ts b/packages/server/src/modules/ee/Workspaces/commands/InactivateWorkspace.service.ts index 4ab5be949..23f22c165 100644 --- a/packages/server/src/modules/ee/Workspaces/commands/InactivateWorkspace.service.ts +++ b/packages/server/src/modules/ee/Workspaces/commands/InactivateWorkspace.service.ts @@ -16,8 +16,8 @@ export class InactivateWorkspaceService { /** * Inactivates a workspace. Only the owner can inactivate. - * @param {number} userId - * @param {string} organizationId + * @param {number} userId - User ID of the user who is inactivating the workspace. + * @param {string} organizationId - Organization ID of the workspace to inactivate. * @returns {Promise} */ async inactivateWorkspace(userId: number, organizationId: string): Promise { @@ -50,8 +50,8 @@ export class InactivateWorkspaceService { /** * Reactivates a workspace. Only the owner can reactivate. - * @param {number} userId - * @param {string} organizationId + * @param {number} userId - User ID of the user who is reactivating the workspace. + * @param {string} organizationId - Organization ID of the workspace to reactivate. * @returns {Promise} */ async activateWorkspace(userId: number, organizationId: string): Promise { @@ -60,7 +60,6 @@ export class InactivateWorkspaceService { if (!tenant) { throw new ServiceError(WorkspacesError.WORKSPACE_NOT_FOUND, 'Workspace not found'); } - const membership = await this.userTenantModel .query() .findOne({ userId, tenantId: tenant.id }) diff --git a/packages/server/src/modules/ee/Workspaces/queries/GetWorkspaces.service.ts b/packages/server/src/modules/ee/Workspaces/queries/GetWorkspaces.service.ts index 136489655..ab1a85553 100644 --- a/packages/server/src/modules/ee/Workspaces/queries/GetWorkspaces.service.ts +++ b/packages/server/src/modules/ee/Workspaces/queries/GetWorkspaces.service.ts @@ -11,8 +11,10 @@ export class GetWorkspacesService { constructor( @Inject(UserTenant.name) private readonly userTenantModel: typeof UserTenant, + @Inject(SystemUser.name) private readonly systemUserModel: typeof SystemUser, + private readonly financialService: GetWorkspacesFinancialService, private readonly transformer: TransformerInjectable, ) {}