Skip to content

Commit

Permalink
Filename
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Sep 10, 2024
1 parent 8230a5d commit d54a527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cam/cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ func (vs *videostore) DoCommand(_ context.Context, command map[string]interface{
}
uploadFileName := filepath.Base(uploadFilePath)
return map[string]interface{}{
"command": "save",
"file": uploadFileName,
"command": "save",
"filename": uploadFileName,
}, nil
case "fetch":
vs.logger.Debug("fetch command received")
Expand Down
2 changes: 1 addition & 1 deletion tests/save_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestSaveDoCommand(t *testing.T) {
if err != nil {
t.Fatalf("failed to execute save command: %v", err)
}
filename, ok := res["file"].(string)
filename, ok := res["filename"].(string)
if !ok {
t.Fatalf("failed to parse filename from response: %v", res)
}
Expand Down

0 comments on commit d54a527

Please sign in to comment.