File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,11 @@ export async function updateProviderKey(
132
132
133
133
const newToken = { accessToken, isPending : false } ;
134
134
await tokenCache . set ( providerKey , newToken , getTokenCacheTtl ( ) ) ;
135
- const { PUBSUB_TOPIC_NAME_UPDATE_PROVIDER_KEY } = process . env ;
136
135
136
+ const { INTEGRATION_NAME } = process . env ;
137
+ assert ( INTEGRATION_NAME , 'INTEGRATION_NAME is not defined' ) ;
138
+
139
+ const { PUBSUB_TOPIC_NAME_UPDATE_PROVIDER_KEY } = process . env ;
137
140
assert (
138
141
PUBSUB_TOPIC_NAME_UPDATE_PROVIDER_KEY ,
139
142
'PUBSUB_TOPIC_NAME_UPDATE_PROVIDER_KEY is not defined' ,
@@ -142,7 +145,7 @@ export async function updateProviderKey(
142
145
const pubSubClient = new PubSubClient ( PUBSUB_TOPIC_NAME_UPDATE_PROVIDER_KEY ) ;
143
146
await pubSubClient . publishMessage ( {
144
147
userId : config . userId ,
148
+ integrationName : INTEGRATION_NAME ,
145
149
providerKey,
146
- accessToken,
147
150
} ) ;
148
151
}
You can’t perform that action at this time.
0 commit comments