Skip to content

Conversation

@petarbasic
Copy link
Contributor

No description provided.

}
}
return 0;
return $fail;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should return only 0 or 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this might be better - it returns how many issues there are

checkWatchdogErrors: async (timestamp, fail_on_notice) => {
const result = drush(`test:checkWatchdog "${timestamp}" "${fail_on_notice}"`);
return result.toString();
return result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made it work with this:

return parseInt(result.toString().replace(/\D/g, ''));

@petarbasic petarbasic merged commit 03a223f into 1.x Jul 24, 2023
@petarbasic petarbasic deleted the feature/INFOPORTAL-5462 branch July 24, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants