Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 4cbdbc8

Browse files
J12934fuhrmeisteryjorgestiga
committed
Reanme upload method to update
Fits better with the getFinding / getRawResult naming schema Co-authored-by: Yannik Fuhrmeister <12710254+fuhrmeistery@users.noreply.github.com> Co-authored-by: Jorge Estigarribia <jorgestiga@hotmail.com>
1 parent e32afa7 commit 4cbdbc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: hook-sdk/nodejs/hook-wrapper.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function uploadFile(url, fileContents) {
4848
});
4949
}
5050

51-
function uploadRawResults(fileContents) {
51+
function updateRawResults(fileContents) {
5252
const rawResultUploadUrl = process.argv[4];
5353
if (rawResultUploadUrl === undefined) {
5454
console.error(
@@ -62,7 +62,7 @@ function uploadRawResults(fileContents) {
6262
return uploadFile(rawResultUploadUrl, fileContents);
6363
}
6464

65-
function uploadFindings(findings) {
65+
function updateFindings(findings) {
6666
const findingsUploadUrl = process.argv[5];
6767
if (findingsUploadUrl === undefined) {
6868
console.error(
@@ -106,8 +106,8 @@ async function main() {
106106
await handle({
107107
getRawResults,
108108
getFindings,
109-
uploadRawResults,
110-
uploadFindings,
109+
updateRawResults,
110+
updateFindings,
111111
scan,
112112
});
113113
} catch (error) {

0 commit comments

Comments
 (0)