try {
$connection->beginTransaction();
$this->questions->declineQuestion(Question::NEW, $uniqid);
$this->mentorWorks->failWork($userId, $questionId, $uniqid);
$connection->commit();
} catch (\PDOException $e) {
$connection->rollBack();
$this->logger->warning($e->getMessage);
}
$username = $_SESSION['session_username'];
$stmt = $pdo->prepare('SELECT * FROM user_spells WHERE user_login = ?');
$stmt->execute([$username]);
return $stmt->fetchAll();