Skip to content

Commit

Permalink
Resolved Not Able to fetch Discord ID Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayman committed Feb 21, 2024
1 parent a5f360f commit 3757f32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions call-profile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,12 @@ func handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyRespo
var chaincode string
var discordId string

if str, ok := dsnap.Data()["discordId"].(string); ok {
discordId = str
} else {
discordId = ""
}

if str, ok := dsnap.Data()["profileURL"].(string); ok {
userUrl = str
} else {
Expand All @@ -541,12 +547,6 @@ func handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyRespo
}, nil
}

if str, ok := dsnap.Data()["discordId"].(string); ok {
discordId = str
} else {
discordId = ""
}

if str, ok := dsnap.Data()["chaincode"].(string); ok {
if str == "" {
logProfileSkipped(client, ctx, userId, "Profile Service Blocked or Chaincode is empty", sessionId)
Expand Down

0 comments on commit 3757f32

Please sign in to comment.