File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
apps/OpenSignServer/cloud Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import SignatureAfterFind from './parsefunction/SignatureAfterFind.js';
32
32
import getInvoices from './parsefunction/getInvoices.js' ;
33
33
import getPayments from './parsefunction/getPayments.js' ;
34
34
import getSubscriptions from './parsefunction/getSubscriptions.js' ;
35
+ import TenantAterFind from './parsefunction/TenantAfterFind.js' ;
35
36
36
37
Parse . Cloud . define ( 'AddUserToRole' , addUserToGroups ) ;
37
38
Parse . Cloud . define ( 'UserGroups' , getUserGroups ) ;
@@ -67,3 +68,4 @@ Parse.Cloud.afterFind(Parse.User, UserAfterFind);
67
68
Parse . Cloud . afterFind ( 'contracts_Document' , DocumentBeforeFind ) ;
68
69
Parse . Cloud . afterFind ( 'contracts_Template' , TemplateAfterFind ) ;
69
70
Parse . Cloud . afterFind ( 'contracts_Signature' , SignatureAfterFind ) ;
71
+ Parse . Cloud . afterFind ( 'partners_Tenant' , TenantAterFind ) ;
Original file line number Diff line number Diff line change
1
+ import getPresignedUrl from './getSignedUrl.js' ;
2
+
3
+ async function TenantAterFind ( request ) {
4
+ if ( request . objects . length === 1 ) {
5
+ if ( request . objects ) {
6
+ const obj = request . objects [ 0 ] ;
7
+ const Logo = obj ?. get ( 'Logo' ) && obj ?. get ( 'Logo' ) ;
8
+ if ( Logo ) {
9
+ obj . set ( 'Logo' , getPresignedUrl ( Logo ) ) ;
10
+ }
11
+ return [ obj ] ;
12
+ }
13
+ }
14
+ }
15
+ export default TenantAterFind ;
You can’t perform that action at this time.
0 commit comments