BUG: Try to resolve 404 error in team check [ci skip]
console.log(`Finished requests for ${context.payload.sender.login}`);
return Promise.all([membership, core_membership]).then(
(results) => {
+ let is_allowed = false;
for (const result of results){
if (result.status == 200 && result.data.state == 'active'){
- return true;
+ is_allowed = true;
+ } else if (result.status == 404){
+ continue;
}
}
+ if (!is_allowed){
console.log(results);
- return false;
+ }
+ return is_allowed;
}
);
