const config = require('../../../knexfile').web
const knex = require('knex')(config)
module.exports = function (id, type) {
  var table = "team_caseload_overview"
  var whereObject = {}
  if (id !== undefined) {
    whereObject.id = id
  }

  return knex(table)
    .where(whereObject)
    .select('name',
            'gradeCode',
            'untiered',
            'd2',
            'd1',
            'c2',
            'c1',
            'b2',
            'b1',
            'a',
            'totalCases')
    .then(function (results) {
      return results
    })
}

const config = require('../../../knexfile').web
const knex = require('knex')(config)
module.exports = function (id, type) {
  var table = "team_caseload_overview"
  var whereObject = {}
  if (id !== undefined) {
    whereObject.id = id
  }

  return knex(table)
    .where(whereObject)
    .select('name',
            'grade_code as gradeCode',
            'untiered',
            'd2',
            'd1',
            'c2',
            'c1',
            'b2',
            'b1',
            'a',
            'total_cases as totalCases')
    .then(function (results) {
      return results
    })
}

Change the column name to follow the standard naming convention.
784: Change the column name to follow the standard naming convention.
