Skip to content

Commit

Permalink
Refactor dts-process.js and add dtsProcessEventRule.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiwycherley committed May 9, 2024
1 parent 6576665 commit 86ac5aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/functions/dts-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ const logger = require('../helpers/logging')
const pg = require('../helpers/db')
const invokeLambda = require('../helpers/invoke-lambda')
const Joi = require('joi')
const deleteStation = require('../helpers/imtd-api').deleteStation
const getRloiIds = require('../helpers/imtd-api').getRloiIds
const getImtdApiResponse = require('../helpers/imtd-api').getImtdApiResponse
const { deleteStation, getRloiIds, getImtdApiResponse } = require('../helpers/imtd-api')

async function insertStation (stationDataArray) {
try {
Expand Down
3 changes: 1 addition & 2 deletions lib/functions/imtd-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ const logger = require('../helpers/logging')
const pg = require('../helpers/db')
const invokeLambda = require('../helpers/invoke-lambda')
const deleteThresholds = require('../helpers/imtd-api').deleteStation
const getRloiIds = require('../helpers/imtd-api').getRloiIds
const { getRloiIds, getImtdApiResponse } = require('../helpers/imtd-api')
const tableName = 'station_imtd_threshold'
const getImtdApiResponse = require('../helpers/imtd-api').getImtdApiResponse

async function insertThresholds (stationId, thresholds) {
try {
Expand Down

0 comments on commit 86ac5aa

Please sign in to comment.