Skip to content

Commit

Permalink
examples: Correct hook type in plugin example (#1101)
Browse files Browse the repository at this point in the history
* Update hook_handler.go. Correct comment

* Update hook_handler.go

---------

Co-authored-by: Marius <marius.kleidl@gmail.com>
  • Loading branch information
ehsansouri23 and Acconut committed Jun 14, 2024
1 parent 00499f7 commit fa5f966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hooks/plugin/hook_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (g *MyHookHandler) InvokeHook(req hooks.HookRequest) (res hooks.HookRespons

// Example: Use the post-finish hook to print information about a completed upload,
// including its storage location.
if req.Type == hooks.HookPreFinish {
if req.Type == hooks.HookPostFinish {
id := req.Event.Upload.ID
size := req.Event.Upload.Size
storage := req.Event.Upload.Storage
Expand Down

0 comments on commit fa5f966

Please sign in to comment.