mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Activities.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
6b7b464acc
commit
08e3ca3435
2 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ if (Meteor.isServer) {
|
|||
listId: card.listId,
|
||||
swimlaneId: card.swimlaneId,
|
||||
});
|
||||
const activity = Activities.findOne({ commentId: doc._id });
|
||||
const activity = ReactiveCache.getActivity({ commentId: doc._id });
|
||||
if (activity) {
|
||||
Activities.remove(activity._id);
|
||||
}
|
||||
|
|
|
@ -219,7 +219,7 @@ function customFieldDeletion(userId, doc) {
|
|||
// instead it shows undefined, and no listId and swimlaneId.
|
||||
function customFieldEdit(userId, doc) {
|
||||
const card = ReactiveCache.getCard(doc.cardId);
|
||||
const customFieldValue = Activities.findOne({ customFieldId: doc._id }).value;
|
||||
const customFieldValue = ReactiveCache.getActivity({ customFieldId: doc._id }).value;
|
||||
Activities.insert({
|
||||
userId,
|
||||
activityType: 'setCustomField',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue