Skip to content

Commit df83834

Browse files
Updated for changes in context data
1 parent 5c39313 commit df83834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/traversal/handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
func ListFilesInDirectory(w http.ResponseWriter, r *http.Request) {
2020

2121
/* extracting userID from request */
22-
userID, err := auth.ExtractUsernameFromRequest(r)
22+
username, _, err := auth.ExtractDataFromRequest(r)
2323
if err != nil {
2424
zap.L().Error("Error during getting username in HandleListFiles handler",
2525
zap.Error(err),
@@ -36,7 +36,7 @@ func ListFilesInDirectory(w http.ResponseWriter, r *http.Request) {
3636
}
3737

3838
/* list all the files in given filepath */
39-
entries, err := ListFiles(listRequest.FilePath, userID)
39+
entries, err := ListFiles(listRequest.FilePath, username)
4040
if err != nil {
4141
zap.L().Warn("File listing error",
4242
zap.Error(err),

0 commit comments

Comments
 (0)