Skip to content
Snippets Groups Projects
Commit 312f9368 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

logs

Detailed description.
parent d5b411cf
No related branches found
No related tags found
3 merge requests!563chore(release): 1.7.4,!558chore(release): 1.7.3,!552Resolve "Données élec - Problème après don du consentement"
......@@ -43,6 +43,7 @@ const ConnectionOAuth: React.FC<ConnectionOAuthProps> = ({
const accountService = new AccountService(client)
const account = await accountService.getAccount(accountId)
if (!account) {
console.log('OAUTH CONNECTION - ACCOUNT NOT FOUND')
const updatedConnection: FluidConnection = {
...fluidStatus.connection,
account: null,
......@@ -57,6 +58,7 @@ const ConnectionOAuth: React.FC<ConnectionOAuthProps> = ({
result: 'error',
})
} else {
console.log('OAUTH CONNECTION - ACCOUNT FOUND : ', account)
const triggersServices = new TriggerService(client)
const trigger: Trigger = await triggersServices.createTrigger(
account,
......
......@@ -56,6 +56,7 @@ import UsageEventService from 'services/usageEvent.service'
import { UsageEventType } from 'enum/usageEvent.enum'
import PartnersInfoService from 'services/partnersInfo.service'
import { PartnersInfo } from 'models/partnersInfo.model'
import log from 'utils/logger'
interface KonnectorViewerCardProps {
fluidStatus: FluidStatus
......@@ -311,6 +312,10 @@ const KonnectorViewerCard: React.FC<KonnectorViewerCardProps> = ({
fluidStatus.connection.shouldLaunchKonnector &&
!isKonnectorRunning(trigger)
) {
console.log('c quoi lembrouille allo quoi')
log.info(
'[KonnectorViewerCard] about to launch connectionFlow from harvest lib'
)
const connectionFlow = new ConnectionFlow(client, trigger, konnector)
await connectionFlow.launch()
connectionFlow.jobWatcher.on(ERROR_EVENT, () => {
......
......@@ -31,12 +31,7 @@ export default class AccountService {
konnector,
accountAuthData
)
const account = await createAccount(
this._client,
konnector,
accountAttributes
)
return account
return createAccount(this._client, konnector, accountAttributes)
}
public async getAccount(id: string): Promise<Account> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment