Remove relations from manual trigger output schema (#15578)

Fixes https://github.com/twentyhq/twenty/issues/15319
Fixes https://github.com/twentyhq/twenty/issues/15255

On index page, we load record with only a few relation fields. So record
selected on manual trigger do not contain all the fields. To match that
behavior, let's remove relations from output schema. The user will do a
search on relation id if needed.
This commit is contained in:
Thomas Trompette
2025-11-03 17:54:13 +01:00
committed by GitHub
parent 711cf819e9
commit 9c695cfed5
@@ -294,6 +294,7 @@ export class WorkflowSchemaWorkspaceService {
return this.computeRecordOutputSchema({
objectType: availability.objectNameSingular,
workspaceId,
maxDepth: 0,
});
}
@@ -395,6 +396,7 @@ export class WorkflowSchemaWorkspaceService {
value: await this.computeRecordOutputSchema({
objectType: trigger.settings.availability.objectNameSingular,
workspaceId,
maxDepth: 0,
}),
};
}