improve cutlergyor move

This commit is contained in:
Schneider Roland
2023-05-11 18:20:56 +02:00
parent 0591f3780c
commit 0d7002b173
6 changed files with 22 additions and 88 deletions

View File

@@ -511,7 +511,7 @@ class KeyDoorManager extends BaseObject
}
// virtual_key: only one move out is allowed
if (!isset($ctx->virtualKey->direction_out_at)) {
if (isset($ctx->virtualKey->direction_out_at)) {
throw new FitnessException(
"$ctx->requestId: virtual key already out. Only one move out allowed.",
FitnessException::TYPE_BAD_REQUEST,
@@ -559,6 +559,7 @@ class KeyDoorManager extends BaseObject
(\Exception $e) {
$this->doRollback();
Yii::info("$ctx->requestId: rollbacked");
Yii::error($e->getMessage());
throw new FitnessException(
"UNKNOWN_ERROR",
FitnessException::UNKNOWN_ERROR,