Description 📹
Modify refreshDiscordMember in utils\discord\refreshRoles.ts to sync a new database document that tracks role assignment logic. The document should include discordMemberId, discordServerConfigId, shouldHaveRole, and date (timestamp of last change). If shouldHaveRole doesn't change, the date field should remain the same. The document must be unique for each discordMemberId and discordServerConfigId combination, requiring the creation of a new table using TypeORM.
Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
- Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
git checkout -b fix-[issue-number]
- Implement Changes:
- Run Tests and Commit Changes:
Make sure your changes don't break existing functionality and commit with a clear message:
git commit -m "Fix: Sync DiscordRoleSyncStatus in refreshDiscordMember function"
Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
- Assignment: Don't create a pull request if you weren’t assigned to this issue.
- Timeframe: Complete the task within 3 business days.
- Closing the Issue: In your PR description, close the issue by writing Close #[issue_id].
- Review Process:
- Once you've submitted your PR, change the label to "ready for review".
- If changes are requested, address them and then update the label back to "ready for review" once done.
- Testing: Test your PR locally before pushing, and verify that tests and build are working after pushing.
Thank you for your contribution 🙏
⚠️ WARNING: Failure to follow the requirements above may result in being added to the OnlyDust blacklist, affecting your ability to receive future rewards.
Description 📹
Modify
refreshDiscordMemberinutils\discord\refreshRoles.tsto sync a new database document that tracks role assignment logic. The document should includediscordMemberId,discordServerConfigId,shouldHaveRole, anddate(timestamp of last change). IfshouldHaveRoledoesn't change, thedatefield should remain the same. The document must be unique for eachdiscordMemberIdanddiscordServerConfigIdcombination, requiring the creation of a new table using TypeORM.Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork the repository and create a new branch using the issue number:
DiscordRoleSyncStatuswith fields:id(primary key)discordMemberIddiscordServerConfigIdshouldHaveRoledatediscordMemberId+discordServerConfigIdrefreshDiscordMember:shouldHaveRole, upsert a document inDiscordRoleSyncStatusdateifshouldHaveRolevalue has changedshouldHaveRolevalueMake sure your changes don't break existing functionality and commit with a clear message:
git commit -m "Fix: Sync DiscordRoleSyncStatus in refreshDiscordMember function"Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
Thank you for your contribution 🙏