Skip to content

Commit 4cbe3e8

Browse files
committed
fix: make changes to title when it is not synced with Intra
1 parent 049e0d9 commit 4cbe3e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sync/titles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const syncTitles = async function(api: Fast42): Promise<void> {
5656
});
5757
if (existingTitleUser) {
5858
// Check if any changes were made
59-
if (existingTitleUser.title_id === titleRecord.id) {
59+
if (existingTitleUser.title_id === titleRecord.id && existingTitleUser.intra_title_user_id !== null) {
6060
console.debug(`User ${rankings[i].user.login} already has title ID ${titleRecord.id} for coalition ${coalition.intra_coalition.name} rank ${rank}, skipping...`);
6161
continue;
6262
}

0 commit comments

Comments
 (0)