Skip to content

handle threads when authorId found - #1068

Merged
ankitsmt211 merged 4 commits into
Together-Java:developfrom
ankitsmt211:bugfix/auto-archiver
Mar 22, 2024
Merged

ankitsmt211 merged 4 commits into
Together-Java:developfrom
ankitsmt211:bugfix/auto-archiver

Conversation

@ankitsmt211

@ankitsmt211 ankitsmt211 commented Mar 21, 2024 •

Copy link
Copy Markdown
Member

Resolves #1067
Error:
when retrieving threads from DB, helper method would try to get active thread channel and match it's ID with thread record from DB. If a match happens, it would then grab authorID from that record and go on with rest of archive flow (retrieve user and then chooses to archive thread with or without mentioning author based on results)

Changes:

  • Dividing archive logic into two parts, if a record match happens in DB aka authorId is found or not
    • triggerArchiveFlow
    • triggerAuthorIdNotFoundArchiveFlow

@ankitsmt211
ankitsmt211 requested a review from a team as a code owner March 21, 2024 19:00
@ankitsmt211 ankitsmt211 added bug Something isn't working priority: major labels Mar 21, 2024
@ankitsmt211
ankitsmt211 merged commit e9b2989 into Together-Java:develop Mar 22, 2024
@ankitsmt211 ankitsmt211 mentioned this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HelpThreadAutoArchiver can't find author from database

3 participants