Skip to content

Commit a242bce

Browse files
committed
rename operation to architect
1 parent 485c908 commit a242bce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Service/Agent/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private function assertName(string $name, ?string $tenantId, ?Table\Generated\Ag
105105

106106
private function assertType(int $type): void
107107
{
108-
if (!in_array($type, [Table\Agent::TYPE_GENERAL, Table\Agent::TYPE_OPERATION, Table\Agent::TYPE_ACTION, Table\Agent::TYPE_SCHEMA, Table\Agent::TYPE_DATABASE], true)) {
108+
if (!in_array($type, [Table\Agent::TYPE_GENERAL, Table\Agent::TYPE_ARCHITECT, Table\Agent::TYPE_ACTION, Table\Agent::TYPE_SCHEMA, Table\Agent::TYPE_DATABASE], true)) {
109109
throw new StatusCode\BadRequestException('Provided an invalid agent type');
110110
}
111111
}

src/Table/Agent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Agent extends Generated\AgentTable
3636
public const STATUS_DELETED = 0;
3737

3838
public const TYPE_GENERAL = 0;
39-
public const TYPE_OPERATION = 1;
39+
public const TYPE_ARCHITECT = 1;
4040
public const TYPE_ACTION = 2;
4141
public const TYPE_SCHEMA = 3;
4242
public const TYPE_DATABASE = 4;

0 commit comments

Comments
 (0)