@chevre/domain 23.1.0-alpha.33 → 23.1.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,10 +136,19 @@ function searchEventSeatOffersWithPaging(params) {
|
|
|
136
136
|
function findEventSeatOffersBySection(params) {
|
|
137
137
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
138
138
|
var _a, _b, _c, _d, _e, _f;
|
|
139
|
-
const { limit, page, projectId, eventId, sectionCode } = params;
|
|
139
|
+
const { limit, page, projectId, sellerId, eventId, sectionCode } = params;
|
|
140
140
|
let offers = [];
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
const event = (yield repos.event.projectEventFields({
|
|
142
|
+
limit: 1,
|
|
143
|
+
page: 1,
|
|
144
|
+
project: { id: { $eq: projectId } },
|
|
145
|
+
organizer: { id: { $eq: sellerId } },
|
|
146
|
+
id: { $eq: eventId },
|
|
147
|
+
typeOf: factory.eventType.ScreeningEvent
|
|
148
|
+
}, ['startDate', 'offers.itemOffered'])).shift();
|
|
149
|
+
if (event === undefined) {
|
|
150
|
+
throw new factory.errors.NotFound(factory.eventType.ScreeningEvent);
|
|
151
|
+
}
|
|
143
152
|
// 座席指定利用可能かどうか
|
|
144
153
|
const eventOffers = event.offers;
|
|
145
154
|
const reservedSeatsAvailable = ((_b = (_a = eventOffers === null || eventOffers === void 0 ? void 0 : eventOffers.itemOffered.serviceOutput) === null || _a === void 0 ? void 0 : _a.reservedTicket) === null || _b === void 0 ? void 0 : _b.ticketedSeat) !== undefined;
|
package/package.json
CHANGED