Skip to content

Commit d8b3093

Browse files
committed
some adjusts
1 parent a495215 commit d8b3093

File tree

1 file changed

+11
-9
lines changed
  • components/boldsign/sources/common

1 file changed

+11
-9
lines changed

components/boldsign/sources/common/base.mjs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)