fix: catch error for getOwnerId with invalid token (#19949)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user