From a7ebcbcd6319377ef5ee48a9fbe94ac840c997d7 Mon Sep 17 00:00:00 2001 From: jennymar Date: Sun, 6 Oct 2024 11:45:49 -0700 Subject: [PATCH] More styling fixes --- api/controllers/MerchStoreController.ts | 8 ++++---- services/AttendanceService.ts | 10 ++++++---- services/MerchStoreService.ts | 5 +++-- services/UserAccountService.ts | 5 +++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/api/controllers/MerchStoreController.ts b/api/controllers/MerchStoreController.ts index 8446171a..54965427 100644 --- a/api/controllers/MerchStoreController.ts +++ b/api/controllers/MerchStoreController.ts @@ -471,8 +471,8 @@ export class MerchStoreController { ): Promise { const pickupEvents = await this.merchOrderService.getPastPickupEvents(); const canSeePickupEventOrders = PermissionsService.canSeePickupEventOrders(user); - const publicPickupEvents = pickupEvents.map((pickupEvent) => - pickupEvent.getPublicOrderPickupEvent(canSeePickupEventOrders)); + const publicPickupEvents = pickupEvents.map((pickupEvent) => pickupEvent + .getPublicOrderPickupEvent(canSeePickupEventOrders)); return { error: null, pickupEvents: publicPickupEvents }; } @@ -482,8 +482,8 @@ export class MerchStoreController { ): Promise { const pickupEvents = await this.merchOrderService.getFuturePickupEvents(); const canSeePickupEventOrders = PermissionsService.canSeePickupEventOrders(user); - const publicPickupEvents = pickupEvents.map((pickupEvent) => - pickupEvent.getPublicOrderPickupEvent(canSeePickupEventOrders)); + const publicPickupEvents = pickupEvents.map((pickupEvent) => pickupEvent + .getPublicOrderPickupEvent(canSeePickupEventOrders)); return { error: null, pickupEvents: publicPickupEvents }; } diff --git a/services/AttendanceService.ts b/services/AttendanceService.ts index e8089a2f..1bedc9e4 100644 --- a/services/AttendanceService.ts +++ b/services/AttendanceService.ts @@ -25,16 +25,18 @@ export default class AttendanceService { } public async getAttendancesForEvent(event: Uuid): Promise { - const attendances = await this.transactions.readOnly(async (txn) => - Repositories.attendance(txn).getAttendancesForEvent(event)); + const attendances = await this.transactions.readOnly(async (txn) => Repositories + .attendance(txn) + .getAttendancesForEvent(event)); return attendances; } public async getAttendancesForCurrentUser( user: UserModel, ): Promise { - const attendances = await this.transactions.readOnly(async (txn) => - Repositories.attendance(txn).getAttendancesForUser(user)); + const attendances = await this.transactions.readOnly(async (txn) => Repositories + .attendance(txn) + .getAttendancesForUser(user)); return attendances; } diff --git a/services/MerchStoreService.ts b/services/MerchStoreService.ts index 1b5de7e2..49af57ca 100644 --- a/services/MerchStoreService.ts +++ b/services/MerchStoreService.ts @@ -77,8 +77,9 @@ export default class MerchStoreService { uuid: Uuid, canSeeInactiveCollections = false, ): Promise { - const collection = await this.transactions.readOnly(async (txn) => - Repositories.merchStoreCollection(txn).findByUuid(uuid)); + const collection = await this.transactions.readOnly(async (txn) => Repositories + .merchStoreCollection(txn) + .findByUuid(uuid)); if (!collection) throw new NotFoundError('Merch collection not found'); if (collection.archived && !canSeeInactiveCollections) throw new ForbiddenError(); collection.collectionPhotos = collection.collectionPhotos.sort( diff --git a/services/UserAccountService.ts b/services/UserAccountService.ts index 6424b564..25adfb7a 100644 --- a/services/UserAccountService.ts +++ b/services/UserAccountService.ts @@ -163,8 +163,9 @@ export default class UserAccountService { public async getCurrentUserActivityStream( uuid: Uuid, ): Promise { - const stream = await this.transactions.readOnly(async (txn) => - Repositories.activity(txn).getCurrentUserActivityStream(uuid)); + const stream = await this.transactions.readOnly(async (txn) => Repositories + .activity(txn) + .getCurrentUserActivityStream(uuid)); return stream; }