fix: catch error for getOwnerId with invalid token (#19949)

This commit is contained in:
Morgan authored and GitHub committed 2025-03-11 13:27:20 +02:00
1 parent 83b6b7caf9
commit 83736785b7
1 file changed
+2 -1
@@ -343,7 +343,8 @@ export class BookingsController_2024_04_15 {
return keyData?.userId;
} else {
// Access Token
return this.oAuthFlowService.getOwnerId(bearerToken);
const ownerId = await this.oAuthFlowService.getOwnerId(bearerToken);
return ownerId;
}
}
} catch (err) {