UpdateTaskOnDeleteActionCommand - Add logs (#17479)

This commit is contained in:
Etienne
2026-01-27 14:03:12 +00:00
committed by GitHub
parent 856dc8be56
commit f532a51467
@@ -126,14 +126,20 @@ export class UpdateTaskOnDeleteActionCommand extends ActiveOrSuspendedWorkspaces
onDelete: RelationOnDeleteAction.CASCADE,
};
await this.fieldMetadataService.updateOneField({
updateFieldInput: {
id: taskField.id,
settings: updatedSettings,
},
workspaceId,
isSystemBuild: true,
});
try {
await this.fieldMetadataService.updateOneField({
updateFieldInput: {
id: taskField.id,
settings: updatedSettings,
},
workspaceId,
isSystemBuild: true,
});
} catch (error) {
this.logger.debug(`Error details: ${JSON.stringify(error)}`);
throw error;
}
this.logger.log(
`Successfully updated task relation onDelete to CASCADE in workspace ${workspaceId}`,