Skip to content

Commit

Permalink
add debug info, increase retry
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Mar 21, 2024
1 parent 7b16760 commit f3e3927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion portal/static/js/src/empro.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,11 @@ emproObj.prototype.initTriggerDomains = function (callbackFunc) {
}
//var self = this;
const isDebugging = getUrlParameter("debug");
tnthAjax.getSubStudyTriggers(this.userId, { maxTryAttempts: isDebugging ? 1 : 3 }, (data) => {
tnthAjax.getSubStudyTriggers(this.userId, { maxTryAttempts: isDebugging ? 1 : 5 }, (data) => {
if (isDebugging) {
data = TestTriggersJson;
}
console.log("Trigger data: ", data);
if (!data || data.error || !data.triggers || !data.triggers.domain) {
callback({ error: true, reason: "no trigger data" });
return false;
Expand Down

0 comments on commit f3e3927

Please sign in to comment.