Skip to content

Commit 7e813f8

Browse files
ArchidoitSamuelHassine
authored andcommitted
[backend] check playbooks available for entity according to filters (#13856)
1 parent 5a416b1 commit 7e813f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencti-platform/opencti-graphql/src/manager/playbookManager/playbookManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const executePlaybookOnEntity = async (context: AuthContext, id: string,
140140
if (filteredPlaybooks.length > 0) {
141141
playbook = filteredPlaybooks.at(0);
142142
} else {
143-
throw FunctionalError('Playbook does not exist', { id });
143+
throw FunctionalError('Playbook does not exist for this entity', { id });
144144
}
145145
// Execute only if definition is available
146146
if (playbook && playbook.playbook_definition) {

0 commit comments

Comments
 (0)