Duplicate filter, Backend data.js file error context

I have used the code from this website:
https://codequeen.wixsite.com/membership-dashboard/the-backend-code What I am trying to do is filter duplicates using Velo. However, the context part does not make sense to me as it is not present in the other functions.
I have underlined in red what I mean.
This error does not allow me to check for duplicates, any answers will be highly appreciated.

The context parameter is part of the definition of the beforeUpdate() database hook. See the beforeUpdate() API for details. It could very well be that the context parameter is not being used and is just being passed by convention.

As far as the details of how and why it’s used in the tutorial, you should reach out to the tutorial’s author.