mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
refactor(server): trip-access primitives async at every caller
This commit is contained in:
@@ -34,7 +34,7 @@ export class DayNotesService {
|
||||
) {}
|
||||
|
||||
async verifyTripAccess(tripId: string | number, userId: number): Promise<TripAccess | undefined> {
|
||||
return this.dbs.canAccessTrip(tripId, userId);
|
||||
return await this.dbs.canAccessTrip(tripId, userId);
|
||||
}
|
||||
|
||||
async canEdit(trip: TripAccess, user: User): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user