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
console.error(`Failed to update Intra user ${rankings[i].user.login} with title ID ${titleRecord.intra_title_id}, HTTP status ${patch.status}${patch.statusText}`);
86
+
if(patch.status==404){
87
+
console.warn(`Intra title_user ID ${existingTitleUser.intra_title_user_id} for user ${rankings[i].user.login} not found on Intra. It may have been deleted manually. Removing intra_title_user_id from database... Next sync will recreate it.`);
88
+
// Remove intra_title_user_id so it can be recreated
89
+
awaitprisma.codamCoalitionTitleUser.update({
90
+
where: {
91
+
id: existingTitleUser.id,
92
+
},
93
+
data: {
94
+
intra_title_user_id: null,
95
+
},
96
+
});
97
+
}
98
+
else{
99
+
console.error(`Failed to update Intra user ${rankings[i].user.login} with title ID ${titleRecord.intra_title_id}, HTTP status ${patch.status}${patch.statusText}`);
100
+
}
87
101
}
88
102
}else{
89
103
// User hasn't had a coalition title on Intra yet, create it
0 commit comments