File tree Expand file tree Collapse file tree
backend/src/serverless/integrations/services/integrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { AddActivitiesSingle } from '../../types/messageTypes'
2020import { MemberAttributeName } from '../../../../database/attributes/member/enums'
2121import { TwitterGrid } from '../../grid/twitterGrid'
2222import Operations from '../../../dbOperations/operations'
23+ import IntegrationRepository from '../../../../database/repositories/integrationRepository'
2324
2425/* eslint class-methods-use-this: 0 */
2526
@@ -414,5 +415,14 @@ export class TwitterIntegrationService extends IntegrationServiceBase {
414415 ...context . pipelineData ,
415416 profileId : context . integration . integrationIdentifier ,
416417 }
418+
419+ await IntegrationRepository . update (
420+ context . integration . id ,
421+ {
422+ token : context . integration . token ,
423+ refreshToken : context . integration . refreshToken ,
424+ } ,
425+ context . repoContext ,
426+ )
417427 }
418428}
You can’t perform that action at this time.
0 commit comments