Skip to content

Commit

Permalink
Fix #198 Fix get admin logs v2 api to get organization id from reques…
Browse files Browse the repository at this point in the history
…t header instead for request path variable
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 5, 2023
1 parent 74c5bce commit 63fe9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/config
3 changes: 1 addition & 2 deletions src/handlerv2/getorglogs_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/bb-consent/api/src/actionlog"
"github.com/bb-consent/api/src/common"
"github.com/bb-consent/api/src/config"
"github.com/gorilla/mux"
)

type orgLog struct {
Expand All @@ -27,7 +26,7 @@ type orgLogsResp struct {

// GetOrgLogs Get action logs for the organization
func GetOrgLogs(w http.ResponseWriter, r *http.Request) {
orgID := mux.Vars(r)["orgID"]
orgID := r.Header.Get(config.OrganizationId)

startID, limit := common.ParsePaginationQueryParameters(r)
if limit == 0 {
Expand Down

0 comments on commit 63fe9e4

Please sign in to comment.