You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wrongsecrets-balancer/src/teams/teams.js
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,11 @@ async function joinIfTeamAlreadyExists(req, res, next) {
174
174
message: 'Team requires authentication to join',
175
175
});
176
176
}catch(error){
177
-
if(error.message.includes(`deployments.apps "t-${team}-wrongsecrets" not found`)||error.message==="Cannot destructure property 'passcodeHash' of '(intermediate value)' as it is undefined."){
177
+
if(
178
+
error.message.includes(`deployments.apps "t-${team}-wrongsecrets" not found`)||
179
+
error.message===
180
+
"Cannot destructure property 'passcodeHash' of '(intermediate value)' as it is undefined."
181
+
){
178
182
logger.info(`Team ${team} doesn't have a WrongSecrets deployment yet`);
179
183
returnnext();
180
184
}else{
@@ -194,7 +198,7 @@ async function joinIfTeamAlreadyExists(req, res, next) {
0 commit comments