Skip to content

Commit 3bf608a

Browse files
committed
fix: check for client id and secret
1 parent 903e996 commit 3bf608a

File tree

2 files changed

+2
-2
lines changed
  • packages/backend/src/apps/aisay/actions

2 files changed

+2
-2
lines changed

packages/backend/src/apps/aisay/actions/use-generalised-model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const action: IRawAction = {
5252
infoToExtract: Array<{ infoToExtract: string }>
5353
}
5454

55-
if (!$.auth.data.clientId || !$.auth.data.clientSecret) {
55+
if (!$.auth.data?.clientId || !$.auth.data?.clientSecret) {
5656
throw new StepError(
5757
'Missing client ID or client secret',
5858
'Please check the client ID and client secret',

packages/backend/src/apps/aisay/actions/use-specific-model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const action: IRawAction = {
4848
documentType: string
4949
}
5050

51-
if (!$.auth.data.clientId || !$.auth.data.clientSecret) {
51+
if (!$.auth.data?.clientId || !$.auth.data?.clientSecret) {
5252
throw new StepError(
5353
'Missing client ID or client secret',
5454
'Please check the client ID and client secret',

0 commit comments

Comments
 (0)