Skip to content

Commit

Permalink
Minor fix for prints and fileIds
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed Jul 10, 2023
1 parent dcb0f07 commit 33696b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -7654,7 +7654,7 @@ func GetCacheKey(ctx context.Context, id string) (*CacheKeyData, error) {
id = id[0:127]
}

log.Printf("ID in get cache: %s", id)
//log.Printf("[WARNING] ID in get cache: %s", id)
id = url.QueryEscape(id)

// 2e7b6a08-b63b-4fc2-bd70-718091509db1
Expand Down Expand Up @@ -7736,7 +7736,6 @@ func GetCacheKey(ctx context.Context, id string) (*CacheKeyData, error) {
if err != nil {
log.Printf("[ERROR] Failed unescaping cache id %s", newId)
}
log.Printf("New id: %s", newId)

// Search for it in datastore with key =
cacheKeys := []CacheKeyData{}
Expand Down
4 changes: 4 additions & 0 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -11901,6 +11901,10 @@ func HandleListCacheKeys(resp http.ResponseWriter, request *http.Request) {
fileId = location[4]
}

if fileId == "undefined" {
fileId = user.ActiveOrg.Id
}

ctx := GetContext(request)
org, err := GetOrg(ctx, fileId)
if err != nil {
Expand Down

0 comments on commit 33696b0

Please sign in to comment.