mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
refactor(server): trip-access primitives async at every caller
This commit is contained in:
@@ -147,7 +147,7 @@ export class CollabService {
|
||||
private readonly inFlight = new Map<string, Promise<LinkPreviewResult>>();
|
||||
|
||||
async verifyTripAccess(tripId: string | number, userId: number) {
|
||||
return this.db.canAccessTrip(tripId, userId);
|
||||
return await this.db.canAccessTrip(tripId, userId);
|
||||
}
|
||||
|
||||
async canEdit(trip: Trip, user: User): Promise<boolean> {
|
||||
|
||||
Reference in New Issue
Block a user