Reduced requests by removing refresh token from operations and loading token data in the first step of an operation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from plugins.rmass.actions import rmassmessagepush, synapsegetroomalias, refresh_tokens, synapsegetlastmessage, getrmassconversation
|
||||
from plugins.rmass.actions import rmassmessagepush, synapsegetroomalias, refresh_tokens, synapsegetlastmessage, getrmassconversation, synapsegetattachment, getrmassattachmenturl, synapseattachmenttormass, getrmassattachmentid, rmassattachmentpush
|
||||
|
||||
name = "RMASS Message Push"
|
||||
|
||||
@@ -6,13 +6,20 @@ kind = "recursiveset"
|
||||
|
||||
recursiveset = {
|
||||
"source": "events",
|
||||
#"retain": False,
|
||||
"outputlabel": "outmessageitem",
|
||||
"actions": [
|
||||
synapsegetroomalias,
|
||||
refresh_tokens,
|
||||
#refresh_tokens,
|
||||
synapsegetroomalias,
|
||||
rmassmessagepush,
|
||||
synapsegetlastmessage,
|
||||
getrmassconversation
|
||||
synapsegetattachment,
|
||||
getrmassattachmenturl,
|
||||
synapseattachmenttormass,
|
||||
getrmassattachmentid,
|
||||
rmassattachmentpush,
|
||||
synapsegetlastmessage,
|
||||
getrmassconversation,
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ name = "Set Available"
|
||||
kind = "operation"
|
||||
|
||||
actions = [
|
||||
refresh_tokens,
|
||||
checkavailable,
|
||||
setavailable,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user