async deleteTask(task) {
    for (let i = 0; i < this.tasks.length; i++) {
      if (task.equalsByKey(this.tasks[i])) {
        this.context.log.v('Scheduler scheduleTask: task.id: ' + task.id + '; found in the list, removing.');
        this.tasks.splice(i, 1);
        const deleteQuery = { id: task.id };
        await this.context.dbManager.deleteDiscordRows(this.context.dbManager.tasksTable, task.orgId, deleteQuery);
        break;
      }
    }
  }
/**
   * Deletes the task from DB which is no longer needed.
   * @param  {OrgTask}  task the task to delete
   * @return {Promise}       nothing
   */
Deletes the task from DB which is no longer needed.
@param  {OrgTask}  task the task to delete
@return {Promise}       nothing
Deletes the task from DB which is no longer needed . @param { OrgTask } task the task to delete @return { Promise } nothing
async deleteTask(task) {
    for (let i = 0; i < this.tasks.length; i++) {
      if (task.equalsByKey(this.tasks[i])) {
        this.context.log.v('Scheduler scheduleTask: task.id: ' + task.id + '; found in the list, removing.');
        this.tasks.splice(i, 1);
        const deleteQuery = { id: task.id };
        await this.context.dbManager.deleteDiscordRows(this.context.dbManager.tasksTable, task.orgId, deleteQuery);
        break;
      }
    }
  }
async deleteTask ( task ) { for ( let i = 0 ; i < this . tasks . length ; i ++ ) { if ( task . equalsByKey ( this . tasks [ i ] ) ) { this . context . log . v ( 'Scheduler scheduleTask: task.id: ' + task . id + '; found in the list, removing.' ) ; this . tasks . splice ( i , 1 ) ; const deleteQuery = { id : task . id } ; await this . context . dbManager . deleteDiscordRows ( this . context . dbManager . tasksTable , task . orgId , deleteQuery ) ; break ; } } }
Deletes the task from DB which is no longer needed.
Deletes the task from DB which is no longer needed .