fix(workspace): ensure proper handling of updates and errors (#9752)

Added `await` to `updateWorkspaceById` in resolver for proper async
handling. Enhanced workspace settings UI with specific error handling
for subdomain conflicts and improved feedback for invalid form values.


Fix
https://github.com/twentyhq/twenty/issues/9709#issuecomment-2597919251
This commit is contained in:
Antoine Moreaux
2025-01-21 17:17:58 +01:00
committed by GitHub
parent 75ba270ba8
commit f4779a02ca
2 changed files with 35 additions and 35 deletions

View File

@ -103,7 +103,7 @@ export class WorkspaceResolver {
@AuthWorkspace() workspace: Workspace,
) {
try {
return this.workspaceService.updateWorkspaceById({
return await this.workspaceService.updateWorkspaceById({
...data,
id: workspace.id,
});