wip
This commit is contained in:
@@ -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,
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user