Skip to content

Commit

Permalink
fix(destination): empty oauth account check (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpj2292 authored and atzoum committed Nov 11, 2022
1 parent 6a4767e commit 775fc6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -2087,10 +2087,12 @@ func (rt *HandleT) HandleOAuthDestResponse(params *HandleDestOAuthRespParamsT) (
}
workspaceID := destinationJob.JobMetadataArray[0].WorkspaceID
var errCatStatusCode int
// destErrDetailed := destErrOutput.Output
// Check the category
// Trigger the refresh endpoint/disable endpoint
rudderAccountID := routerutils.GetRudderAccountId(&destinationJob.Destination)
if strings.TrimSpace(rudderAccountID) == "" {
return trRespStatusCode, trRespBody
}
switch destErrOutput.AuthErrorCategory {
case oauth.DISABLE_DEST:
return rt.ExecDisableDestination(&destinationJob.Destination, workspaceID, trRespBody, rudderAccountID)
Expand Down

0 comments on commit 775fc6e

Please sign in to comment.