GladysProject/Gladys

View on GitHub
server/services/nextcloud-talk/lib/bot/bot.startPolling.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function startPolling has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function startPolling(userId) {
  logger.debug(`Start polling Nextcloud Talk for user: ${userId}`);

  this.bots[userId].NEXTCLOUD_URL = await this.gladys.variable.getValue('NEXTCLOUD_URL', this.serviceId, userId);
  this.bots[userId].NEXTCLOUD_BOT_USERNAME = await this.gladys.variable.getValue(
Severity: Major
Found in server/services/nextcloud-talk/lib/bot/bot.startPolling.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status