-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Remove field lastActivity
from subscription data
#8345
Conversation
if (this.identifier === 'f') { | ||
query.f = favoritesEnabled; | ||
} else { | ||
let types = [this.identifier]; | ||
if (this.identifier === 'activity') { | ||
types = ['c', 'p', 'd']; | ||
sort = { lastActivity : -1, _updatedAt: -1}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to this it should still sort by _updatedAt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @sampaiodiego
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sampaiodiego @engelgabriel sort
is not used if the indentifier === "activity"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a migration to remove lastActivity from the DB
@engelgabriel could you review migration 101? |
lastActivity
from subscription data
Remove field `lastActivity` from subscription data
@RocketChat/core
Closes #8338