mirror of
https://github.com/wekan/wekan.git
synced 2026-03-01 03:10:16 +01:00
Return data on client (sync) and Promise on server (async) naturally, without wrapping in an extra Promise
This commit is contained in:
parent
2b15a8ff09
commit
f934aea2a5
21 changed files with 405 additions and 3760 deletions
|
|
@ -54,20 +54,20 @@ Rules.helpers({
|
|||
async rename(description) {
|
||||
return await Rules.updateAsync(this._id, { $set: { description } });
|
||||
},
|
||||
async getAction() {
|
||||
return await ReactiveCache.getAction(this.actionId);
|
||||
getAction() {
|
||||
return ReactiveCache.getAction(this.actionId);
|
||||
},
|
||||
async getTrigger() {
|
||||
return await ReactiveCache.getTrigger(this.triggerId);
|
||||
getTrigger() {
|
||||
return ReactiveCache.getTrigger(this.triggerId);
|
||||
},
|
||||
async board() {
|
||||
return await ReactiveCache.getBoard(this.boardId);
|
||||
board() {
|
||||
return ReactiveCache.getBoard(this.boardId);
|
||||
},
|
||||
async trigger() {
|
||||
return await ReactiveCache.getTrigger(this.triggerId);
|
||||
trigger() {
|
||||
return ReactiveCache.getTrigger(this.triggerId);
|
||||
},
|
||||
async action() {
|
||||
return await ReactiveCache.getAction(this.actionId);
|
||||
action() {
|
||||
return ReactiveCache.getAction(this.actionId);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue