File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
components/boldsign/sources/common Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,19 @@ export default {
5858 } ,
5959 async emitEvent ( maxResults = false ) {
6060 const lastDate = this . _getLastDate ( ) ;
61+ const params = {
62+ ...this . getParams ( ) ,
63+ } ;
64+
65+ if ( this . sentBy ) params . sentBy = this . sentBy ;
66+ if ( this . recipients ) params . recipients = parseObject ( this . recipients ) ;
67+ if ( this . searchKey ) params . searchKey = this . searchKey ;
68+ if ( this . labels ) params . labels = parseObject ( this . labels ) ;
69+ if ( this . brandIds ) params . brandIds = parseObject ( this . brandIds ) ;
6170
6271 const response = this . boldsign . paginate ( {
6372 fn : this . getFunction ( ) ,
64- params : {
65- ...this . getParams ( ) ,
66- sentBy : this . sentBy ,
67- recipients : this . recipients ,
68- searchKey : this . searchKey ,
69- labels : this . labels ,
70- brandIds : parseObject ( this . brandIds ) ,
71- } ,
73+ params,
7274 } ) ;
7375
7476 let responseArray = [ ] ;
@@ -86,7 +88,7 @@ export default {
8688
8789 for ( const item of responseArray . reverse ( ) ) {
8890 this . $emit ( item , {
89- id : ` ${ item . documentId } - ${ item . activityDate } ` ,
91+ id : item . documentId ,
9092 summary : this . getSummary ( item ) ,
9193 ts : Date . parse ( item . activityDate || new Date ( ) ) ,
9294 } ) ;
You can’t perform that action at this time.
0 commit comments