Skip to content

Commit

Permalink
fix: define default value for error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Sep 11, 2021
1 parent 482b7c9 commit 5f27099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/util/process.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports.save = async (event, results, filename, tmp) => {
}
};

module.exports.start = async ({ camera, filename, tmp, attempts = 1, errors }) => {
module.exports.start = async ({ camera, filename, tmp, attempts = 1, errors = {} }) => {
const promises = [];
for (const detector of DETECTORS) {
if (!errors[detector]) errors[detector] = 0;
Expand Down

0 comments on commit 5f27099

Please sign in to comment.