Skip to content

Commit 37abd15

Browse files
added summaries to getOrderDetails getEventDetails and getTicketCheckIns per Jorge review comments
1 parent ae337a2 commit 37abd15

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

components/ticketsauce/actions/get-event-details/get-event-details.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ export default {
5959
include_performers: parseInt(this.includePerformers) === 1,
6060
};
6161

62-
return this.ticketsauce.getEventDetails($, {
62+
const response = await this.ticketsauce.getEventDetails($, {
6363
eventId: this.eventId,
6464
params,
6565
});
66+
67+
$.export("$summary", `Successfully retrieved details for event ID: ${this.eventId}`);
68+
return response;
6669
},
6770
};

components/ticketsauce/actions/get-order-details/get-order-details.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ export default {
4646
},
4747
},
4848
async run({ $ }) {
49-
return this.ticketsauce.getOrderDetails($, {
49+
const response = await this.ticketsauce.getOrderDetails($, {
5050
orderId: this.orderId,
5151
});
52+
53+
$.export("$summary", `Successfully retrieved details for order ID: ${this.orderId}`);
54+
return response;
5255
},
5356
};

components/ticketsauce/actions/get-ticket-checkin-ids/get-ticket-checkin-ids.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ export default {
5555
page: this.page,
5656
};
5757

58-
return this.ticketsauce.getTicketCheckinIds($, {
58+
const response = await this.ticketsauce.getTicketCheckinIds($, {
5959
eventId: this.eventId,
6060
params,
6161
});
62+
63+
$.export("$summary", `Successfully retrieved ticket check-in IDs for event ID: ${this.eventId}`);
64+
return response;
6265
},
6366
};

0 commit comments

Comments
 (0)