Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions lib/redshift.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,6 @@ Redshift.prototype.checkTableExists = function (tableName, schema) {
return this.executeQuery(query, transform)
}

// Determine the month of the latest finalized DBR to be imported into Redshift.
Redshift.prototype.latestFullMonth = function () {
let query = `SELECT MAX(statement_month) FROM ${this.schema}.${this.lineItemsTableName};`
return this.getScalar(query, 'max').then(function (date) {
let latest = moment.utc(date)
if (latest.isValid()) {
return latest
} else {
return null
}
})
}

// Determine whether a specific finalized month has already been imported.
Redshift.prototype.hasMonth = function (month) {
let query = `
Expand Down