Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Conversation

@Michael-Phoenix
Copy link

Stop trying to export all ban entries of a specific Export List when that list errors out.

Stop trying to export all ban entries of a specific Export List when that list errors out.
Copy link
Contributor

@ect0s ect0s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to double check the database for the specified list, then remove bans/ignore ban/creation/deletion if the last has been removed?

The circumstance where a list is invalid on BM but valid on our end (IN our databse) would require battlemetrics removing a banlist on its own.

In the case where a user logs into the website and deletes their list, we can catch this here and cleanup?

`Failed to ${
exportBan.status === 'TO_BE_CREATED' ? 'create' : 'delete'
} export ban (ID: ${exportBan.id}): `,
} export ban (ID: ${exportBan.id}) - Ignoring exports for List ${exportBan.ExportBanList.id} for this run: `,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way that this can throw an error in logging so we can take action on it with PM2?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants