Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AVMatthews committed Jan 20, 2025
1 parent 0a3c885 commit 1fc3454
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/webui/imports/api/ingestion/server/publications.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,16 @@ const refreshCompressionJobs = async () => {
job._id
));

// Save timestamp before querying the combressionDBManager
const newDate = new Date().toISOString()
const previousUpdateDate = lastUpdateDate;
lastUpdateDate = new Date().toISOString()
.slice(0, CONST_FOR_DATE_FORMAT)
.replace("T", " ");

const jobs = await compressionDbManager.getCompressionJobs(
lastUpdateDate,
previousUpdateDate,
pendingJobIds
);

lastUpdateDate = newDate;

const operations = jobs.map((doc) => ({
updateOne: {
filter: {_id: doc._id},
Expand Down

0 comments on commit 1fc3454

Please sign in to comment.