Skip to content

updated the code to check for the #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 8, 2023

Conversation

bountyC0d3r
Copy link
Collaborator

No description provided.

Copy link
Contributor

@ThomasKranitsas ThomasKranitsas left a comment

Choose a reason for hiding this comment

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

if (updateGroup.oldId.length > 0) cache.set(group.id, updatedGroup)

This will throw an error if oldId is undefined.

const cache = await helper.getCacheInstance()
cache.set(group.id, group)
cache.set(`${group.id}-members`, [])
// do not set the cache as while creating the groups is not having the `oldId`
Copy link
Contributor

Choose a reason for hiding this comment

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

should we remove those lines instead of commenting them out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have kept them as we need them once we introduce DAL, where we would be getting the oldId immediately and then we can put the group in the cache.

@ThomasKranitsas ThomasKranitsas merged commit af6763b into topcoder-platform:develop Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants