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';
3232import getInvoices from './parsefunction/getInvoices.js' ;
3333import getPayments from './parsefunction/getPayments.js' ;
3434import getSubscriptions from './parsefunction/getSubscriptions.js' ;
35+ import TenantAterFind from './parsefunction/TenantAfterFind.js' ;
3536
3637Parse . Cloud . define ( 'AddUserToRole' , addUserToGroups ) ;
3738Parse . Cloud . define ( 'UserGroups' , getUserGroups ) ;
@@ -67,3 +68,4 @@ Parse.Cloud.afterFind(Parse.User, UserAfterFind);
6768Parse . Cloud . afterFind ( 'contracts_Document' , DocumentBeforeFind ) ;
6869Parse . Cloud . afterFind ( 'contracts_Template' , TemplateAfterFind ) ;
6970Parse . 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