mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
Almost full circle
This commit is contained in:
parent
93cc7f0232
commit
9b0eb0a9f1
24 changed files with 492 additions and 165 deletions
|
|
@ -56,6 +56,17 @@ Activities.before.insert((userId, doc) => {
|
|||
doc.createdAt = new Date();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Activities.after.insert((userId, doc) => {
|
||||
const activity = Activities._transform(doc);
|
||||
const matchedTriggers = Triggers.find(activity);
|
||||
if(matchedTriggers.count() > 0){
|
||||
const card = activity.card();
|
||||
Cards.direct.update({_id: card._id},{$set: {title: "ciaooo"}});
|
||||
}
|
||||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
// For efficiency create indexes on the date of creation, and on the date of
|
||||
// creation in conjunction with the card or board id, as corresponding views
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue