fix deleteCurrentWorkspace resolver output (#10365)
Tests are planned in this sprint - Core priority closes https://github.com/twentyhq/twenty/issues/10347
This commit is contained in:
@ -321,7 +321,9 @@ export class WorkspaceService extends TypeOrmQueryService<Workspace> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (softDelete) {
|
if (softDelete) {
|
||||||
return await this.workspaceRepository.softDelete({ id });
|
await this.workspaceRepository.softDelete({ id });
|
||||||
|
|
||||||
|
return workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.deleteMetadataSchemaCacheAndUserWorkspace(workspace);
|
await this.deleteMetadataSchemaCacheAndUserWorkspace(workspace);
|
||||||
@ -330,8 +332,9 @@ export class WorkspaceService extends TypeOrmQueryService<Workspace> {
|
|||||||
FileWorkspaceFolderDeletionJob.name,
|
FileWorkspaceFolderDeletionJob.name,
|
||||||
{ workspaceId: id },
|
{ workspaceId: id },
|
||||||
);
|
);
|
||||||
|
await this.workspaceRepository.delete(id);
|
||||||
|
|
||||||
return await this.workspaceRepository.delete(id);
|
return workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
async handleRemoveWorkspaceMember(
|
async handleRemoveWorkspaceMember(
|
||||||
|
|||||||
Reference in New Issue
Block a user