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:
@ -103,7 +103,7 @@ export class WorkspaceResolver {
|
||||
@AuthWorkspace() workspace: Workspace,
|
||||
) {
|
||||
try {
|
||||
return this.workspaceService.updateWorkspaceById({
|
||||
return await this.workspaceService.updateWorkspaceById({
|
||||
...data,
|
||||
id: workspace.id,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user