Compare commits
No commits in common. "stable" and "1.4.0" have entirely different histories.
|
@ -1,5 +1,3 @@
|
|||
# Telegram chat-robot for task registering
|
||||
# Telegram-robot for registering for tasks
|
||||
|
||||
Chat-robot Telegram for accepting applications for employees from [mirzaev/ebala](https://git.mirzaev.sexy/mirzaev/ebala)
|
||||
|
||||
**DEVELOPMENT COMPLETED. PROJECT CLOSED.**
|
||||
Synchronizes accounts with the site, displays a list of published applications with a selection by date, and also register to tasks
|
|
@ -348,9 +348,6 @@ function request_confirmed(Context $ctx): void
|
|||
// Инициализация инстанции task в базе данных (выбранного задания)
|
||||
$task = collection::search($arangodb->session, sprintf("FOR d IN task FILTER d._key == '%s' && d.published == true && d.completed != true && worker == null RETURN d", $_key));
|
||||
|
||||
if ($task instanceof _document) {
|
||||
// Найдена заявка (подразумевается, что не занята)
|
||||
|
||||
if ($worker ??= worker($account->getId())) {
|
||||
// Найден сотрудник
|
||||
|
||||
|
@ -386,9 +383,6 @@ function request_confirmed(Context $ctx): void
|
|||
} else $ctx->sendMessage("❎ *Не удалось принять заявку:* \#$_key", ['reply_markup' => ['remove_keyboard' => true]])->then(function () use ($ctx) {
|
||||
generateMenu($ctx);
|
||||
});
|
||||
} else $ctx->sendMessage("❎ *Не удалось принять заявку:* \#$_key", ['reply_markup' => ['remove_keyboard' => true]])->then(function () use ($ctx) {
|
||||
generateMenu($ctx);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue