1
0
This commit is contained in:
Ahmed Bouhuolia
2026-05-18 13:29:16 +02:00
parent b1766a9c6f
commit c69515f618
2 changed files with 6 additions and 5 deletions
@@ -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<void>}
*/
async inactivateWorkspace(userId: number, organizationId: string): Promise<void> {
@@ -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<void>}
*/
async activateWorkspace(userId: number, organizationId: string): Promise<void> {
@@ -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 })
@@ -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,
) {}