userRepository->searchByQuery($query, $limit, $offset); } catch (\Exception $e) { $this->logger->error('Database user search error: ' . $e->getMessage()); return []; } } public function findByNpubs(array $npubs, int $limit = 200): array { if (empty($npubs)) { return []; } try { return $this->userRepository->findByNpubs($npubs, $limit); } catch (\Exception $e) { $this->logger->error('Database findByNpubs error: ' . $e->getMessage()); return []; } } public function findByRole(string $role, ?string $query = null, int $limit = 12, int $offset = 0): array { try { return $this->userRepository->findByRoleWithQuery($role, $query, $limit, $offset); } catch (\Exception $e) { $this->logger->error('Database findByRole error: ' . $e->getMessage()); return []; } } }