mirror of
https://github.com/wekan/wekan.git
synced 2026-02-18 22:18:07 +01: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
|
|
@ -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