Skip to content

Commit

Permalink
hotfix: call TaskObject with an option property; bump to 1.4.1 (NUWCD…
Browse files Browse the repository at this point in the history
…IVNPT#84)

* fix: call TaskObject with an option property
* chore: bump version to 1.4.1
  • Loading branch information
csmig authored Jan 24, 2024
1 parent b73edbd commit 71830df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/cargo.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function writer ( taskAsset ) {
})
r.stigs = r.stigs.map( stig => stig.benchmarkId )
logger.info({ component: component, message: `STIG assignments updated`,
asset: { assetId: r.assetId, name: r.name, stigs: r.stigs } })
asset: { assetId: r.assetId, name: r.name, stigs: r.stigs } })
}

// POST reviews
Expand Down Expand Up @@ -97,7 +97,7 @@ async function resultsHandler( parsedResults, cb ) {
logger.info({component: component, message: `batch started`, batchId: batchId, size: parsedResults.length})
const apiAssets = await api.getCollectionAssets(config.collectionId)
const apiStigs = await api.getInstalledStigs()
const tasks = new TaskObject ({ parsedResults, apiAssets, apiStigs })
const tasks = new TaskObject ({ parsedResults, apiAssets, apiStigs, options:config })
for ( const taskAsset of tasks.taskAssets.values() ) {
await writer( taskAsset )
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stigman-watcher",
"version": "1.4.0",
"version": "1.4.1",
"description": "CLI that watches a path for STIG test result files on behalf of a STIG Manager Collection.",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 71830df

Please sign in to comment.