Skip to content

Commit

Permalink
fixes analytics api
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Nov 22, 2023
1 parent 8f4e4bd commit 97f6981
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipe/dashboard/api/analyticsPOST.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ func AnalyticsPost(apiInterface dashboardmodels.APIInterface, tenantId string, o
}
}

websiteDomain, err := supertokensInstance.AppInfo.GetOrigin(nil, &map[string]interface{}{})
if err != nil {
return analyticsPostResponse{}, err
}

data := map[string]interface{}{
"websiteDomain": supertokensInstance.AppInfo.WebsiteDomain.GetAsStringDangerous(),
"websiteDomain": websiteDomain.GetAsStringDangerous(),
"apiDomain": supertokensInstance.AppInfo.APIDomain.GetAsStringDangerous(),
"appName": supertokensInstance.AppInfo.AppName,
"sdk": "golang",
Expand Down

0 comments on commit 97f6981

Please sign in to comment.